Gui: Center notification label and disable show report view by default (#21872)

* Gui: Center notification label and disable show report view by default

* Stylesheet: min-width: 0 for QStatusBar QPushButton
This commit is contained in:
Max Wilfinger
2025-06-16 18:03:58 +02:00
committed by GitHub
parent 272505d22b
commit d59f404267
5 changed files with 15 additions and 3 deletions

View File

@@ -418,7 +418,7 @@ MainWindow::MainWindow(QWidget * parent, Qt::WindowFlags f)
notificationArea->setObjectName(QStringLiteral("notificationArea"));
//: A context menu action used to show or hide the 'notificationArea' toolbar widget
notificationArea->setWindowTitle(tr("Notification area"));
notificationArea->setStyleSheet(QStringLiteral("text-align:left;"));
notificationArea->setStyleSheet(QStringLiteral("text-align:center;"));
statusBar()->addPermanentWidget(notificationArea);
}

View File

@@ -115,7 +115,7 @@ on-screen while displaying the error</string>
<string>Show report view on error</string>
</property>
<property name="checked">
<bool>true</bool>
<bool>false</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>checkShowReportViewOnError</cstring>

View File

@@ -241,7 +241,7 @@ public:
}
static bool showOnError()
{
return getGroup()->GetBool("checkShowReportViewOnError", true);
return getGroup()->GetBool("checkShowReportViewOnError", false);
}
static void toggleShowOnError()
{

View File

@@ -236,6 +236,12 @@ QStatusBar QLabel {
background-color: transparent;
}
QStatusBar QPushButton {
min-width: 0;
padding-left: 8px;
padding-right: 8px;
}
/* QCheckBox --------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcheckbox

View File

@@ -237,6 +237,12 @@ QStatusBar QLabel {
background-color: transparent;
}
QStatusBar QPushButton {
min-width: 0;
padding-left: 8px;
padding-right: 8px;
}
/* QCheckBox --------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcheckbox