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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -241,7 +241,7 @@ public:
|
||||
}
|
||||
static bool showOnError()
|
||||
{
|
||||
return getGroup()->GetBool("checkShowReportViewOnError", true);
|
||||
return getGroup()->GetBool("checkShowReportViewOnError", false);
|
||||
}
|
||||
static void toggleShowOnError()
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user