- fix: If buttons in the options dialog / compiler / compiler set page is pressed, they won't release.

This commit is contained in:
Roy Qu 2023-01-19 23:58:56 +08:00
parent 7b38bc3b20
commit b0be83b006
3 changed files with 11 additions and 10 deletions

View File

@ -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

View File

@ -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();

View File

@ -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);