mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-04 08:15:30 +08:00
qt 6.5.1 original
This commit is contained in:
0
tests/baseline/stylesheet/qss/default.qss
Normal file
0
tests/baseline/stylesheet/qss/default.qss
Normal file
31
tests/baseline/stylesheet/qss/dummy.qss
Normal file
31
tests/baseline/stylesheet/qss/dummy.qss
Normal file
@ -0,0 +1,31 @@
|
||||
/* dummy stylesheet to reproduce QTBUG-100433 for QToolButton
|
||||
QDummyView {
|
||||
alternate-background-color: yellow;
|
||||
}
|
||||
|
||||
QDummyView {
|
||||
show-decoration-selected: 1;
|
||||
}
|
||||
|
||||
QDummyView::item {
|
||||
border: 1px solid #d9d9d9;
|
||||
border-top-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
|
||||
QDummyView::item:hover {
|
||||
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #e7effd, stop: 1 #cbdaf1);
|
||||
border: 1px solid #bfcde4;
|
||||
}
|
||||
|
||||
QDummyView::item:selected {
|
||||
border: 1px solid #567dbc;
|
||||
}
|
||||
|
||||
QDummyView::item:selected:active{
|
||||
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6ea1f1, stop: 1 #567dbc);
|
||||
}
|
||||
|
||||
QDummyView::item:selected:!active {
|
||||
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6b9be8, stop: 1 #577fbf);
|
||||
}
|
1
tests/baseline/stylesheet/qss/qscrollarea/no_border.qss
Normal file
1
tests/baseline/stylesheet/qss/qscrollarea/no_border.qss
Normal file
@ -0,0 +1 @@
|
||||
border: none
|
@ -0,0 +1,72 @@
|
||||
QScrollBar:horizontal {
|
||||
border: 2px solid grey;
|
||||
background: #32CC99;
|
||||
height: 15px;
|
||||
margin: 0px 20px 0 20px;
|
||||
}
|
||||
QScrollBar::handle:horizontal {
|
||||
background: white;
|
||||
min-width: 20px;
|
||||
}
|
||||
QScrollBar::add-line:horizontal {
|
||||
border: 2px solid grey;
|
||||
background: #32CC99;
|
||||
width: 20px;
|
||||
subcontrol-position: right;
|
||||
subcontrol-origin: margin;
|
||||
}
|
||||
|
||||
QScrollBar::sub-line:horizontal {
|
||||
border: 2px solid grey;
|
||||
background: #32CC99;
|
||||
width: 20px;
|
||||
subcontrol-position: left;
|
||||
subcontrol-origin: margin;
|
||||
}
|
||||
|
||||
QScrollBar:left-arrow:horizontal, QScrollBar::right-arrow:horizontal {
|
||||
border: 2px solid grey;
|
||||
width: 3px;
|
||||
height: 3px;
|
||||
background: white;
|
||||
}
|
||||
|
||||
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
|
||||
background: none;
|
||||
}
|
||||
|
||||
QScrollBar:vertical {
|
||||
border: 2px solid grey;
|
||||
background: #32CC99;
|
||||
width: 15px;
|
||||
margin: 22px 0 22px 0;
|
||||
}
|
||||
QScrollBar::handle:vertical {
|
||||
background: white;
|
||||
min-height: 20px;
|
||||
}
|
||||
QScrollBar::add-line:vertical {
|
||||
border: 2px solid grey;
|
||||
background: #32CC99;
|
||||
height: 20px;
|
||||
subcontrol-position: bottom;
|
||||
subcontrol-origin: margin;
|
||||
}
|
||||
|
||||
QScrollBar::sub-line:vertical {
|
||||
border: 2px solid grey;
|
||||
background: #32CC99;
|
||||
height: 20px;
|
||||
subcontrol-position: top;
|
||||
subcontrol-origin: margin;
|
||||
}
|
||||
QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
|
||||
border: 2px solid grey;
|
||||
width: 3px;
|
||||
height: 3px;
|
||||
background: white;
|
||||
}
|
||||
|
||||
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
|
||||
background: none;
|
||||
}
|
@ -0,0 +1 @@
|
||||
QToolButton::menu-button { border: none }
|
@ -0,0 +1,12 @@
|
||||
QToolButton {
|
||||
border: 5px solid #9e9e9e;
|
||||
background: #ffffff;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
QToolButton[popupMode=InstantPopup] {
|
||||
padding-right: 75px;
|
||||
}
|
||||
QToolButton::menu-indicator {
|
||||
subcontrol-position: right;
|
||||
};
|
@ -0,0 +1,4 @@
|
||||
QToolButton::menu-indicator {
|
||||
subcontrol-position: right center;
|
||||
subcontrol-origin: padding;
|
||||
}
|
1
tests/baseline/stylesheet/qss/qtoolbutton/no_border.qss
Normal file
1
tests/baseline/stylesheet/qss/qtoolbutton/no_border.qss
Normal file
@ -0,0 +1 @@
|
||||
border: none
|
38
tests/baseline/stylesheet/qss/qtoolbutton/styled.qss
Normal file
38
tests/baseline/stylesheet/qss/qtoolbutton/styled.qss
Normal file
@ -0,0 +1,38 @@
|
||||
QToolButton::menu-button {
|
||||
border: 2px solid gray;
|
||||
border-top-right-radius: 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
/* 16px width + 4px for border = 20px allocated above */
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
QToolButton::menu-indicator {
|
||||
image: url(:/icons/arrow-up.png);
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
subcontrol-position: right bottom;
|
||||
}
|
||||
|
||||
QToolButton::menu-arrow {
|
||||
subcontrol-position: bottom right;
|
||||
image: url(:/icons/arrow-up.png);
|
||||
}
|
||||
QToolButton::down-arrow {
|
||||
image: url(:/icons/arrow-up.png);
|
||||
background-color: blue
|
||||
}
|
||||
QToolButton::up-arrow {
|
||||
image: url(:/icons/arrow-up.png);
|
||||
background-color: green
|
||||
}
|
||||
QToolButton::left-arrow {
|
||||
image: url(:/icons/arrow-up.png);
|
||||
background-color: red
|
||||
}
|
||||
QToolButton::right-arrow {
|
||||
image: url(:/icons/arrow-up.png);
|
||||
background-color: cyan;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
subcontrol-position: right bottom;
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
QToolButton {
|
||||
border: none
|
||||
}
|
||||
|
||||
QToolButton::menu-button {
|
||||
border: 2px solid gray;
|
||||
border-top-right-radius: 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
/* 16px width + 4px for border = 20px allocated above */
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
QToolButton::menu-indicator {
|
||||
image: url(:/icons/arrow-up.png);
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
subcontrol-position: right bottom;
|
||||
}
|
||||
|
||||
QToolButton::menu-arrow {
|
||||
subcontrol-position: bottom right;
|
||||
image: url(:/icons/arrow-up.png);
|
||||
}
|
||||
QToolButton::down-arrow {
|
||||
image: url(:/icons/arrow-up.png);
|
||||
background-color: blue
|
||||
}
|
||||
QToolButton::up-arrow {
|
||||
image: url(:/icons/arrow-up.png);
|
||||
background-color: green
|
||||
}
|
||||
QToolButton::left-arrow {
|
||||
image: url(:/icons/arrow-up.png);
|
||||
background-color: red
|
||||
}
|
||||
QToolButton::right-arrow {
|
||||
image: url(:/icons/arrow-up.png);
|
||||
background-color: cyan;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
subcontrol-position: right bottom;
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
QTreeView {
|
||||
show-decoration-selected: 1
|
||||
}
|
18
tests/baseline/stylesheet/qss/qtreeview/styledIndicators.qss
Normal file
18
tests/baseline/stylesheet/qss/qtreeview/styledIndicators.qss
Normal file
@ -0,0 +1,18 @@
|
||||
QTreeWidget::indicator:indeterminate {
|
||||
background: red
|
||||
}
|
||||
QTreeWidget::indicator:indeterminate:disabled {
|
||||
background: pink
|
||||
}
|
||||
QTreeWidget::indicator:checked {
|
||||
background: green
|
||||
}
|
||||
QTreeWidget::indicator:checked:disabled {
|
||||
background: lightgreen
|
||||
}
|
||||
QTreeWidget::indicator:unchecked {
|
||||
background: blue
|
||||
}
|
||||
QTreeWidget::indicator:unchecked:disabled {
|
||||
background: lightblue
|
||||
};
|
7
tests/baseline/stylesheet/qss/qtreeview/styledItem.qss
Normal file
7
tests/baseline/stylesheet/qss/qtreeview/styledItem.qss
Normal file
@ -0,0 +1,7 @@
|
||||
QAbstractItemView::item
|
||||
{
|
||||
background: grey;
|
||||
}
|
||||
QTreeWidget::indicator:checked {
|
||||
background: green
|
||||
}
|
10
tests/baseline/stylesheet/qss/qtreeview/styledSelection.qss
Normal file
10
tests/baseline/stylesheet/qss/qtreeview/styledSelection.qss
Normal file
@ -0,0 +1,10 @@
|
||||
QTreeView {
|
||||
alternate-background-color: yellow;
|
||||
show-decoration-selected: 1;
|
||||
}
|
||||
QTreeView::item:selected:active {
|
||||
background: qlineargradient(x1:0, y1:0 x2: 0, y2: 1, stop: 0 #fea1f1 stop: 1 #567dbc)
|
||||
}
|
||||
QTreeView::branch {
|
||||
border: 2px
|
||||
}
|
Reference in New Issue
Block a user