fix #408: In options -> code format -> Program, Choose astyle path button doesn't work.

This commit is contained in:
Roy Qu 2024-05-02 17:02:55 +08:00
parent 67b2ec1bc7
commit 0b56b6383f
2 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,7 @@ void FormatterPathWidget::updateIcons(const QSize &/*size*/)
pIconsManager->setIcon(ui->btnChooseAstyle, IconsManager::ACTION_FILE_OPEN_FOLDER); pIconsManager->setIcon(ui->btnChooseAstyle, IconsManager::ACTION_FILE_OPEN_FOLDER);
} }
void FormatterPathWidget::on_btnChooseAstyle_triggered(QAction */*arg1*/) void FormatterPathWidget::on_btnChooseAstyle_clicked()
{ {
QString fileName = QFileDialog::getOpenFileName( QString fileName = QFileDialog::getOpenFileName(
this, this,
@ -44,3 +44,4 @@ void FormatterPathWidget::on_btnChooseAstyle_triggered(QAction */*arg1*/)
ui->txtAstyle->setText(fileName); ui->txtAstyle->setText(fileName);
} }
} }

View File

@ -25,7 +25,7 @@ protected:
void doSave() override; void doSave() override;
void updateIcons(const QSize &size) override; void updateIcons(const QSize &size) override;
private slots: private slots:
void on_btnChooseAstyle_triggered(QAction *arg1); void on_btnChooseAstyle_clicked();
}; };
#endif // FORMATTERPATHWIDGET_H #endif // FORMATTERPATHWIDGET_H