- fix: text color of labels in statusbar not correctly updated when change theme

- change: auto generate gcc version info in the about dialog
 - change: seperates version info to version.h
This commit is contained in:
royqh1979 2021-11-14 17:43:25 +08:00
parent 7c0ee9857b
commit d14a1be208
8 changed files with 32 additions and 3 deletions

View File

@ -1,3 +1,6 @@
Version 0.8.9 For Dev-C++ 7 Beta
- fix: text color of labels in statusbar not correctly updated when change theme
Version 0.8.8 For Dev-C++ 7 Beta
- enhancement: drag & drop text in the editor
- enhancement: auto calcuate caret line size basing on font size

View File

@ -197,6 +197,7 @@ HEADERS += \
thememanager.h \
todoparser.h \
toolsmanager.h \
version.h \
widgets/aboutdialog.h \
widgets/bookmarkmodel.h \
widgets/classbrowser.h \

View File

@ -4,6 +4,7 @@
#include "../systemconsts.h"
#include "../platform.h"
#include "../editor.h"
#include "../version.h"
#include <QDir>

View File

@ -20,6 +20,7 @@
#include "widgets/darkfusionstyle.h"
#include "problems/problemcasevalidator.h"
#include "widgets/ojproblempropertywidget.h"
#include "version.h"
#include <QCloseEvent>
#include <QComboBox>
@ -511,6 +512,10 @@ void MainWindow::applySettings()
else
QApplication::setStyle("fusion");
qApp->setPalette(appTheme->palette());
//fix for qstatusbar bug
mFileEncodingStatus->setPalette(appTheme->palette());
mFileModeStatus->setPalette(appTheme->palette());
mFileInfoStatus->setPalette(appTheme->palette());
updateEditorColorSchemes();
QFont font(pSettings->environment().interfaceFont(),

View File

@ -3,8 +3,6 @@
#include <QStringList>
#define DEVCPP_VERSION "beta.0.8.8"
#define APP_SETTSINGS_FILENAME "redpandacpp.ini"
#ifdef Q_OS_WIN
#define GCC_PROGRAM "gcc.exe"

View File

@ -22,6 +22,7 @@
#include "editorlist.h"
#include "editor.h"
#include "project.h"
#include "version.h"
const QByteArray GuessTextEncoding(const QByteArray& text){
bool allAscii;

7
RedPandaIDE/version.h Normal file
View File

@ -0,0 +1,7 @@
#ifndef VERSION_H
#define VERSION_H
#include <QOBJECT>
#define DEVCPP_VERSION "beta.0.8.9"
#endif // VERSION_H

View File

@ -1,6 +1,8 @@
#include "aboutdialog.h"
#include "ui_aboutdialog.h"
#include "../systemconsts.h"
#include "../version.h"
AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent),
@ -8,9 +10,20 @@ AboutDialog::AboutDialog(QWidget *parent) :
{
ui->setupUi(this);
ui->lblTitle->setText(ui->lblTitle->text() + tr("Version: ") + DEVCPP_VERSION);
#ifdef __GNUC__
ui->lblContent->setText(ui->lblContent->text()
.arg(qVersion())
.arg("GCC 10.3.0",__DATE__, __TIME__));
.arg(QString("GCC %1.%2")
.arg(__GNUC__)
.arg(__GNUC_MINOR__)
,__DATE__, __TIME__));
#else
ui->lblContent->setText(ui->lblContent->text()
.arg(qVersion())
.arg("Non-GCC Compiler"
,__DATE__, __TIME__));
#endif
}
AboutDialog::~AboutDialog()