Doc: Correct snippet about customizing QMenuBar
Task-number: QTBUG-79129 Change-Id: I1f8da3b429ab8543ca1f0b7079d0f50bbeea8eb5 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
31012df705
commit
365f70be6e
@ -1107,10 +1107,10 @@ QMenu::indicator:exclusive:checked:selected {
|
|||||||
QMenuBar {
|
QMenuBar {
|
||||||
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
|
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
|
||||||
stop:0 lightgray, stop:1 darkgray);
|
stop:0 lightgray, stop:1 darkgray);
|
||||||
|
spacing: 3px; /* spacing between menu bar items */
|
||||||
}
|
}
|
||||||
|
|
||||||
QMenuBar::item {
|
QMenuBar::item {
|
||||||
spacing: 3px; /* spacing between menu bar items */
|
|
||||||
padding: 1px 4px;
|
padding: 1px 4px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
Loading…
Reference in New Issue
Block a user