- 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:
parent
7c0ee9857b
commit
d14a1be208
3
NEWS.md
3
NEWS.md
|
@ -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
|
Version 0.8.8 For Dev-C++ 7 Beta
|
||||||
- enhancement: drag & drop text in the editor
|
- enhancement: drag & drop text in the editor
|
||||||
- enhancement: auto calcuate caret line size basing on font size
|
- enhancement: auto calcuate caret line size basing on font size
|
||||||
|
|
|
@ -197,6 +197,7 @@ HEADERS += \
|
||||||
thememanager.h \
|
thememanager.h \
|
||||||
todoparser.h \
|
todoparser.h \
|
||||||
toolsmanager.h \
|
toolsmanager.h \
|
||||||
|
version.h \
|
||||||
widgets/aboutdialog.h \
|
widgets/aboutdialog.h \
|
||||||
widgets/bookmarkmodel.h \
|
widgets/bookmarkmodel.h \
|
||||||
widgets/classbrowser.h \
|
widgets/classbrowser.h \
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
#include "../systemconsts.h"
|
#include "../systemconsts.h"
|
||||||
#include "../platform.h"
|
#include "../platform.h"
|
||||||
#include "../editor.h"
|
#include "../editor.h"
|
||||||
|
#include "../version.h"
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#include "widgets/darkfusionstyle.h"
|
#include "widgets/darkfusionstyle.h"
|
||||||
#include "problems/problemcasevalidator.h"
|
#include "problems/problemcasevalidator.h"
|
||||||
#include "widgets/ojproblempropertywidget.h"
|
#include "widgets/ojproblempropertywidget.h"
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
|
@ -511,6 +512,10 @@ void MainWindow::applySettings()
|
||||||
else
|
else
|
||||||
QApplication::setStyle("fusion");
|
QApplication::setStyle("fusion");
|
||||||
qApp->setPalette(appTheme->palette());
|
qApp->setPalette(appTheme->palette());
|
||||||
|
//fix for qstatusbar bug
|
||||||
|
mFileEncodingStatus->setPalette(appTheme->palette());
|
||||||
|
mFileModeStatus->setPalette(appTheme->palette());
|
||||||
|
mFileInfoStatus->setPalette(appTheme->palette());
|
||||||
updateEditorColorSchemes();
|
updateEditorColorSchemes();
|
||||||
|
|
||||||
QFont font(pSettings->environment().interfaceFont(),
|
QFont font(pSettings->environment().interfaceFont(),
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
|
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
#define DEVCPP_VERSION "beta.0.8.8"
|
|
||||||
|
|
||||||
#define APP_SETTSINGS_FILENAME "redpandacpp.ini"
|
#define APP_SETTSINGS_FILENAME "redpandacpp.ini"
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
#define GCC_PROGRAM "gcc.exe"
|
#define GCC_PROGRAM "gcc.exe"
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#include "editorlist.h"
|
#include "editorlist.h"
|
||||||
#include "editor.h"
|
#include "editor.h"
|
||||||
#include "project.h"
|
#include "project.h"
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
const QByteArray GuessTextEncoding(const QByteArray& text){
|
const QByteArray GuessTextEncoding(const QByteArray& text){
|
||||||
bool allAscii;
|
bool allAscii;
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#ifndef VERSION_H
|
||||||
|
#define VERSION_H
|
||||||
|
#include <QOBJECT>
|
||||||
|
|
||||||
|
#define DEVCPP_VERSION "beta.0.8.9"
|
||||||
|
|
||||||
|
#endif // VERSION_H
|
|
@ -1,6 +1,8 @@
|
||||||
#include "aboutdialog.h"
|
#include "aboutdialog.h"
|
||||||
#include "ui_aboutdialog.h"
|
#include "ui_aboutdialog.h"
|
||||||
#include "../systemconsts.h"
|
#include "../systemconsts.h"
|
||||||
|
#include "../version.h"
|
||||||
|
|
||||||
|
|
||||||
AboutDialog::AboutDialog(QWidget *parent) :
|
AboutDialog::AboutDialog(QWidget *parent) :
|
||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
|
@ -8,9 +10,20 @@ AboutDialog::AboutDialog(QWidget *parent) :
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->lblTitle->setText(ui->lblTitle->text() + tr("Version: ") + DEVCPP_VERSION);
|
ui->lblTitle->setText(ui->lblTitle->text() + tr("Version: ") + DEVCPP_VERSION);
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
ui->lblContent->setText(ui->lblContent->text()
|
ui->lblContent->setText(ui->lblContent->text()
|
||||||
.arg(qVersion())
|
.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()
|
AboutDialog::~AboutDialog()
|
||||||
|
|
Loading…
Reference in New Issue