Skip to content

Commit

Permalink
fixed shortcut 4,5. radio can only be checked if enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jowin202 committed Dec 19, 2023
1 parent 40a09a4 commit 358d11f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ MainWindow::MainWindow(QWidget *parent)
connect(&num1, &QAction::triggered, [=](){ this->ui->radio_sprite_left->setChecked(true); });
connect(&num2, &QAction::triggered, [=](){ this->ui->radio_mc1_left->setChecked(true); });
connect(&num3, &QAction::triggered, [=](){ this->ui->radio_mc2_left->setChecked(true); });
connect(&num4, &QAction::triggered, [=](){ this->ui->radio_overlay_color_left->setChecked(true); });
connect(&num5, &QAction::triggered, [=](){ this->ui->radio_overlay_transparent_left->setChecked(true); });
connect(&num4, &QAction::triggered, [=](){ if (this->ui->radio_overlay_color_left->isEnabled()) this->ui->radio_overlay_color_left->setChecked(true); });
connect(&num5, &QAction::triggered, [=](){ if (this->ui->radio_overlay_transparent_left->isEnabled())this->ui->radio_overlay_transparent_left->setChecked(true); });


connect(this->ui->graphicsView, &SpriteView::zoom_in, this, [=](){ this->ui->slider_scale->setValue(this->ui->slider_scale->value()+10);});
Expand Down

0 comments on commit 358d11f

Please sign in to comment.