fix #408: In options -> code format -> Program, Choose astyle path button doesn't work.
This commit is contained in:
parent
67b2ec1bc7
commit
0b56b6383f
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue