diff --git a/NEWS.md b/NEWS.md index 4c3df5d7..0cc3d964 100644 --- a/NEWS.md +++ b/NEWS.md @@ -8,6 +8,7 @@ Red Panda C++ Version 2.10 - enhancement: Code Completion now respect compiler set's language standard settings. - enhancement: Save project files' real encoding; - enhancement: Use project files' real encoding information when generating the makefile. + - fix: If buttons in the options dialog / compiler / compiler set page is pressed, they won't release. Red Panda C++ Version 2.9 diff --git a/RedPandaIDE/settingsdialog/compilersetoptionwidget.cpp b/RedPandaIDE/settingsdialog/compilersetoptionwidget.cpp index 983d6547..81fdb44e 100644 --- a/RedPandaIDE/settingsdialog/compilersetoptionwidget.cpp +++ b/RedPandaIDE/settingsdialog/compilersetoptionwidget.cpp @@ -246,7 +246,7 @@ QString CompilerSetOptionWidget::getBinDir() return QDir().absolutePath(); } -void CompilerSetOptionWidget::on_btnFindCompilers_pressed() +void CompilerSetOptionWidget::on_btnFindCompilers_clicked() { #ifdef Q_OS_WIN QString msg = tr("Red Panda C++ will clear current compiler list and search" @@ -269,7 +269,7 @@ void CompilerSetOptionWidget::on_btnFindCompilers_pressed() } } -void CompilerSetOptionWidget::on_btnAddBlankCompilerSet_pressed() +void CompilerSetOptionWidget::on_btnAddBlankCompilerSet_clicked() { QString name = QInputDialog::getText(this,tr("Compiler Set Name"),tr("Name")); pSettings->compilerSets().addSet(); @@ -278,7 +278,7 @@ void CompilerSetOptionWidget::on_btnAddBlankCompilerSet_pressed() doLoad(); } -void CompilerSetOptionWidget::on_btnAddCompilerSetByFolder_pressed() +void CompilerSetOptionWidget::on_btnAddCompilerSetByFolder_clicked() { QString folder = QFileDialog::getExistingDirectory(this, tr("Compiler Set Folder")); int oldSize = pSettings->compilerSets().size(); @@ -293,7 +293,7 @@ void CompilerSetOptionWidget::on_btnAddCompilerSetByFolder_pressed() } } -void CompilerSetOptionWidget::on_btnRenameCompilerSet_pressed() +void CompilerSetOptionWidget::on_btnRenameCompilerSet_clicked() { QString name = QInputDialog::getText(this,tr("Compiler Set Name"),tr("New name"),QLineEdit::Normal, pSettings->compilerSets().defaultSet()->name()); @@ -302,7 +302,7 @@ void CompilerSetOptionWidget::on_btnRenameCompilerSet_pressed() doLoad(); } -void CompilerSetOptionWidget::on_btnRemoveCompilerSet_pressed() +void CompilerSetOptionWidget::on_btnRemoveCompilerSet_clicked() { pSettings->compilerSets().deleteSet(ui->cbCompilerSet->currentIndex()); doLoad(); diff --git a/RedPandaIDE/settingsdialog/compilersetoptionwidget.h b/RedPandaIDE/settingsdialog/compilersetoptionwidget.h index ceb6d135..6348796b 100644 --- a/RedPandaIDE/settingsdialog/compilersetoptionwidget.h +++ b/RedPandaIDE/settingsdialog/compilersetoptionwidget.h @@ -56,11 +56,11 @@ private: private slots: void on_cbCompilerSet_currentIndexChanged(int index); - void on_btnFindCompilers_pressed(); - void on_btnAddBlankCompilerSet_pressed(); - void on_btnAddCompilerSetByFolder_pressed(); - void on_btnRenameCompilerSet_pressed(); - void on_btnRemoveCompilerSet_pressed(); + void on_btnFindCompilers_clicked(); + void on_btnAddBlankCompilerSet_clicked(); + void on_btnAddCompilerSetByFolder_clicked(); + void on_btnRenameCompilerSet_clicked(); + void on_btnRemoveCompilerSet_clicked(); void on_cbEncoding_currentTextChanged(const QString &arg1); void on_cbEncodingDetails_currentTextChanged(const QString &arg1);