- fix: problem set & problem views not correctly hidden when disabled in the general / problem set options

This commit is contained in:
royqh1979 2021-11-19 07:52:36 +08:00
parent bc2d662c1d
commit f274d7f208
6 changed files with 12 additions and 7 deletions

View File

@ -1,5 +1,7 @@
Version 0.9.2 For Dev-C++ 7 Beta Version 0.9.2 For Dev-C++ 7 Beta
- fix: console program that needs input may crash - fix: console program that needs input may crash
- fix: gutter of the disassembly code control in the cpu info dialog is grayed
- fix: problem set & problem views not correctly hidden when disabled in the general / problem set options
Version 0.9.1 For Dev-C++ 7 Beta Version 0.9.1 For Dev-C++ 7 Beta
- enhancement: code completion suggestion for "__func__" variable - enhancement: code completion suggestion for "__func__" variable

Binary file not shown.

View File

@ -1715,7 +1715,7 @@ Are you really want to continue?</source>
<message> <message>
<location filename="settingsdialog/editorsyntaxcheckwidget.ui" line="49"/> <location filename="settingsdialog/editorsyntaxcheckwidget.ui" line="49"/>
<source>Check when count of lines changed</source> <source>Check when count of lines changed</source>
<translation></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -7101,7 +7101,7 @@ Are you really want to continue?</source>
<message> <message>
<location filename="settingsdialog/editorgeneralwidget.ui" line="234"/> <location filename="settingsdialog/editorgeneralwidget.ui" line="234"/>
<source>Highlight</source> <source>Highlight</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="settingsdialog/editorgeneralwidget.ui" line="240"/> <location filename="settingsdialog/editorgeneralwidget.ui" line="240"/>

View File

@ -534,7 +534,7 @@ void MainWindow::applySettings()
if (!mTcpServer.listen(QHostAddress::LocalHost,pSettings->executor().competivieCompanionPort())) { if (!mTcpServer.listen(QHostAddress::LocalHost,pSettings->executor().competivieCompanionPort())) {
// QMessageBox::critical(nullptr, // QMessageBox::critical(nullptr,
// tr("Listen failed"), // tr("Listen failed"),
// tr("Can't listen to port %1 form Competitve Companion.").arg(10045) // tr("Can't listen to port %1 form Competitive Companion.").arg(10045)
// + "<BR/>" // + "<BR/>"
// +tr("You can turn off competitive companion support in the Problem Set options.") // +tr("You can turn off competitive companion support in the Problem Set options.")
// + "<BR/>" // + "<BR/>"
@ -574,7 +574,8 @@ void MainWindow::applyUISettings()
ui->actionFiles->setChecked(settings.showFiles()); ui->actionFiles->setChecked(settings.showFiles());
showHideInfosTab(ui->tabFiles,settings.showFiles()); showHideInfosTab(ui->tabFiles,settings.showFiles());
ui->actionProblem_Set->setChecked(settings.showProblemSet()); ui->actionProblem_Set->setChecked(settings.showProblemSet());
showHideInfosTab(ui->tabProblemSet,settings.showProblemSet()); showHideInfosTab(ui->tabProblemSet,settings.showProblemSet()
&& pSettings->executor().enableProblemSet());
ui->actionIssues->setChecked(settings.showIssues()); ui->actionIssues->setChecked(settings.showIssues());
showHideMessagesTab(ui->tabIssues,settings.showIssues()); showHideMessagesTab(ui->tabIssues,settings.showIssues());
@ -589,7 +590,8 @@ void MainWindow::applyUISettings()
ui->actionBookmark->setChecked(settings.showBookmark()); ui->actionBookmark->setChecked(settings.showBookmark());
showHideMessagesTab(ui->tabBookmark,settings.showBookmark()); showHideMessagesTab(ui->tabBookmark,settings.showBookmark());
ui->actionProblem->setChecked(settings.showProblem()); ui->actionProblem->setChecked(settings.showProblem());
showHideMessagesTab(ui->tabProblem,settings.showProblem()); showHideMessagesTab(ui->tabProblem,settings.showProblem()
&& pSettings->executor().enableProblemSet());
//we can't show/hide left/bottom panels here, cause mainwindow layout is not calculated //we can't show/hide left/bottom panels here, cause mainwindow layout is not calculated
} }

View File

@ -119,7 +119,8 @@ SynEdit::SynEdit(QWidget *parent) : QAbstractScrollArea(parent)
mBlockEnd = mBlockBegin; mBlockEnd = mBlockBegin;
mOptions = eoAutoIndent mOptions = eoAutoIndent
| eoDragDropEditing | eoEnhanceEndKey | eoTabIndent | | eoDragDropEditing | eoEnhanceEndKey | eoTabIndent |
eoGroupUndo | eoKeepCaretX | eoSelectWordByDblClick; eoGroupUndo | eoKeepCaretX | eoSelectWordByDblClick
| eoHideShowScrollbars ;
mScrollTimer = new QTimer(this); mScrollTimer = new QTimer(this);
mScrollTimer->setInterval(100); mScrollTimer->setInterval(100);

View File

@ -19,7 +19,7 @@ CPUDialog::CPUDialog(QWidget *parent) :
ui->txtCode->codeFolding().indentGuides = false; ui->txtCode->codeFolding().indentGuides = false;
ui->txtCode->codeFolding().fillIndents = false; ui->txtCode->codeFolding().fillIndents = false;
ui->txtCode->setRightEdge(0); ui->txtCode->setGutterWidth(0);
ui->txtCode->setUseCodeFolding(false); ui->txtCode->setUseCodeFolding(false);
highlighterManager.applyColorScheme(ui->txtCode->highlighter(), highlighterManager.applyColorScheme(ui->txtCode->highlighter(),
pSettings->editor().colorScheme()); pSettings->editor().colorScheme());