fix dialogs button size in case of long text
Let the layout engine computes the size of all QPushButton by unset the minimalSize value set by "min-width" QSS property in themes. Fix #18019.
This commit is contained in:
committed by
Kacper Donat
parent
e8c4d7ea2f
commit
17719536bc
@@ -1289,13 +1289,9 @@ QPushButton::menu-indicator {
|
||||
|
||||
QDialogButtonBox QPushButton {
|
||||
/* Issue # 194 # 248 - Special case of QPushButton inside dialogs, for better UI */
|
||||
min-width: 80px;
|
||||
min-width: -1;
|
||||
}
|
||||
|
||||
QMessageBox[objectName="macroGuideWalkthrough"] QDialogButtonBox QPushButton,
|
||||
QMessageBox[objectName="confirmSave"] QDialogButtonBox QPushButton {
|
||||
min-width: 20px;
|
||||
}
|
||||
/* QToolButton ------------------------------------------------------------
|
||||
|
||||
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbutton
|
||||
|
||||
@@ -1286,12 +1286,7 @@ QPushButton::menu-indicator {
|
||||
|
||||
QDialogButtonBox QPushButton {
|
||||
/* Issue # 194 # 248 - Special case of QPushButton inside dialogs, for better UI */
|
||||
min-width: 80px;
|
||||
}
|
||||
|
||||
QMessageBox[objectName="macroGuideWalkthrough"] QDialogButtonBox QPushButton,
|
||||
QMessageBox[objectName="confirmSave"] QDialogButtonBox QPushButton {
|
||||
min-width: 20px;
|
||||
min-width: -1;
|
||||
}
|
||||
|
||||
/* QToolButton ------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user