Do not use a tool window for about dialog
* With the Lightly style (and its default color palette) the about dialog background is otherwise transparent * The frame doesn't look that nice anymore under Windows 10 anyways
This commit is contained in:
parent
7792012916
commit
4e5068900f
|
@ -10,7 +10,7 @@ set(META_APP_DESCRIPTION
|
||||||
"Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models")
|
"Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models")
|
||||||
set(META_VERSION_MAJOR 6)
|
set(META_VERSION_MAJOR 6)
|
||||||
set(META_VERSION_MINOR 4)
|
set(META_VERSION_MINOR 4)
|
||||||
set(META_VERSION_PATCH 0)
|
set(META_VERSION_PATCH 1)
|
||||||
set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH})
|
set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH})
|
||||||
|
|
||||||
project(${META_PROJECT_NAME})
|
project(${META_PROJECT_NAME})
|
||||||
|
|
|
@ -45,7 +45,7 @@ AboutDialog::AboutDialog(QWidget *parent, const QString &applicationName, const
|
||||||
m_ui->setupUi(this);
|
m_ui->setupUi(this);
|
||||||
makeHeading(m_ui->productNameLabel);
|
makeHeading(m_ui->productNameLabel);
|
||||||
setStyleSheet(dialogStyle());
|
setStyleSheet(dialogStyle());
|
||||||
setWindowFlags(Qt::Tool);
|
setWindowFlags((windowFlags()) & ~(Qt::WindowMinMaxButtonsHint | Qt::WindowContextHelpButtonHint | Qt::WindowFullscreenButtonHint));
|
||||||
if (!applicationName.isEmpty()) {
|
if (!applicationName.isEmpty()) {
|
||||||
m_ui->productNameLabel->setText(applicationName);
|
m_ui->productNameLabel->setText(applicationName);
|
||||||
} else if (!QApplication::applicationDisplayName().isEmpty()) {
|
} else if (!QApplication::applicationDisplayName().isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue