mirror of
https://github.com/MaurycyLiebner/enve.git
synced 2024-12-20 07:32:08 +00:00
Compare commits
No commits in common. "b240c39cb24d9a667913e544d769300f44bc515e" and "b6c5cd22ea22b185bf9f900a74172635917d8f2a" have entirely different histories.
b240c39cb2
...
b6c5cd22ea
@ -537,10 +537,6 @@ bool CanvasWindow::KFT_keyPressEvent(QKeyEvent *event) {
|
||||
if(canvasMode == CanvasMode::paint) mDocument.incBrushRadius();
|
||||
} else if(e.fKey == Qt::Key_Q) {
|
||||
if(canvasMode == CanvasMode::paint) mDocument.decBrushRadius();
|
||||
} else if(e.fKey == Qt::Key_E) {
|
||||
if(canvasMode == CanvasMode::paint) mDocument.setPaintMode(PaintMode::erase);
|
||||
} else if(e.fKey == Qt::Key_B) {
|
||||
if(canvasMode == CanvasMode::paint) mDocument.setPaintMode(PaintMode::normal);
|
||||
} else if((e.fKey == Qt::Key_Enter || e.fKey == Qt::Key_Return) &&
|
||||
canvasMode == CanvasMode::drawPath) {
|
||||
const bool manual = mDocument.fDrawPathManual;
|
||||
|
@ -785,7 +785,7 @@ void MainWindow::setupMenuBar() {
|
||||
tr("Fill and Stroke", "MenuBar_View_Docks"));
|
||||
mFillAndStrokeDockAct->setCheckable(true);
|
||||
mFillAndStrokeDockAct->setChecked(true);
|
||||
mFillAndStrokeDockAct->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_E));
|
||||
mFillAndStrokeDockAct->setShortcut(QKeySequence(Qt::Key_E));
|
||||
|
||||
connect(mFillStrokeSettingsDock, &CloseSignalingDockWidget::madeVisible,
|
||||
mFillAndStrokeDockAct, &QAction::setChecked);
|
||||
@ -796,7 +796,7 @@ void MainWindow::setupMenuBar() {
|
||||
tr("Paint Brush", "MenuBar_View_Docks"));
|
||||
mBrushDockAction->setCheckable(true);
|
||||
mBrushDockAction->setChecked(false);
|
||||
mBrushDockAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_B));
|
||||
mBrushDockAction->setShortcut(QKeySequence(Qt::Key_B));
|
||||
|
||||
connect(mBrushSettingsDock, &CloseSignalingDockWidget::madeVisible,
|
||||
mBrushDockAction, &QAction::setChecked);
|
||||
|
@ -188,7 +188,7 @@ TimelineDockWidget::TimelineDockWidget(Document& document,
|
||||
mPaintNormalMode = SwitchButton::sCreate2Switch(
|
||||
"toolbarButtons/paintChecked.png",
|
||||
"toolbarButtons/paintUnchecked.png",
|
||||
gSingleLineTooltip("Paint", "B"), this);
|
||||
gSingleLineTooltip("Paint"), this);
|
||||
connect(mPaintNormalMode, &SwitchButton::toggled,
|
||||
this, [this](const int state) {
|
||||
if(state == 0) {
|
||||
@ -199,7 +199,7 @@ TimelineDockWidget::TimelineDockWidget(Document& document,
|
||||
mPaintEraseMode = SwitchButton::sCreate2Switch(
|
||||
"toolbarButtons/eraseChecked.png",
|
||||
"toolbarButtons/eraseUnchecked.png",
|
||||
gSingleLineTooltip("Erase", "E"), this);
|
||||
gSingleLineTooltip("Erase"), this);
|
||||
mPaintEraseMode->setState(1);
|
||||
connect(mPaintEraseMode, &SwitchButton::toggled,
|
||||
this, [this](const int state) {
|
||||
|
Loading…
Reference in New Issue
Block a user