Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/doc/src/snippets/code/doc_src_stylesheet.qdoc

    r2 r561  
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
    142//! [0]
    243QLineEdit { background: yellow }
     
    125166UL OL+LI      {}  /* a=0 b=0 c=3 -> specificity =   3 */
    126167H1 + *[REL=up]{}  /* a=0 b=1 c=1 -> specificity =  11 */
    127 UL OL LI.red  {}  /* a=0 b=1 c=3 -> specificity =  13 */ 
     168UL OL LI.red  {}  /* a=0 b=1 c=3 -> specificity =  13 */
    128169LI.red.level  {}  /* a=0 b=2 c=1 -> specificity =  21 */
    129170#x34y         {}  /* a=1 b=0 c=0 -> specificity = 100 */
     
    220261
    221262//! [35]
    222 QLabel { 
     263QLabel {
    223264    background-image: url(dense6pattern.png);
    224265    background-repeat: repeat-xy;
     
    381422/* implicitly sets the size of down-button to the size of spindown.png */
    382423QSpinBox::down-button { image: url(:/images/spindown.png) }
    383 
    384 QTextEdit { image: url(x1.png) url(x2.png) }
    385 QTextEdit { image: url(pic1.svg) }
    386424//! [59]
    387425
     
    556594/* radial gradient from white to green */
    557595QTextEdit {
    558     background: qradialgradient(cx:0, cy:0, radius: 1, 
     596    background: qradialgradient(cx:0, cy:0, radius: 1,
    559597                fx:0.5, fy:0.5, stop:0 white, stop:1 green)
    560 } 
     598}
    561599//! [85]
    562600
     
    831869    top: 1px;
    832870    left: 1px;
    833 } 
     871}
    834872//! [109]
    835873
     
    9621000//! [116]
    9631001QHeaderView::section {
    964     background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, 
    965                                       stop:0 #616161, stop: 0.5 #505050, 
     1002    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
     1003                                      stop:0 #616161, stop: 0.5 #505050,
    9661004                                      stop: 0.6 #434343, stop:1 #656565);
    9671005    color: white;
    9681006    padding-left: 4px;
    9691007    border: 1px solid #6c6c6c;
     1008
     1009
     1010
     1011
     1012
    9701013}
    9711014
     
    10261069
    10271070QListView::item:selected:!active {
    1028     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 
     1071    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
    10291072                                stop: 0 #ABAFE5, stop: 1 #8588B2);
    10301073}
    10311074
    10321075QListView::item:selected:active {
    1033     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 
     1076    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
    10341077                                stop: 0 #6a6ea9, stop: 1 #888dd9);
    10351078}
    10361079
    10371080QListView::item:hover {
    1038     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 
     1081    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
    10391082                                stop: 0 #FAFBFE, stop: 1 #DCDEF1);
    10401083}
     
    10581101QMenu {
    10591102    background-color: #ABABAB; /* sets background of the menu */
    1060     border: 1px solid black; 
     1103    border: 1px solid black;
    10611104}
    10621105
    10631106QMenu::item {
    1064     /* sets background of menu item. set this to something non-transparent 
     1107    /* sets background of menu item. set this to something non-transparent
    10651108        if you want menu color and menu item color to be different */
    1066     background-color: transparent; 
     1109    background-color: transparent;
    10671110}
    10681111
     
    10931136    border: 1px inset gray;
    10941137    position: absolute;
    1095     top: 1px; 
    1096     right: 1px; 
    1097     bottom: 1px; 
     1138    top: 1px;
     1139    right: 1px;
     1140    bottom: 1px;
    10981141    left: 1px;
    10991142}
     
    11021145    height: 2px;
    11031146    background: lightblue;
    1104     margin-left: 10px; 
     1147    margin-left: 10px;
    11051148    margin-right: 5px;
    11061149}
     
    12061249    border: 2px solid #8f8f91;
    12071250    border-radius: 6px;
    1208     background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 
     1251    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
    12091252                                      stop: 0 #f6f7fa, stop: 1 #dadbde);
    12101253    min-width: 80px;
     
    12121255
    12131256QPushButton:pressed {
    1214     background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 
     1257    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
    12151258                                      stop: 0 #dadbde, stop: 1 #f6f7fa);
    12161259}
     
    12281271//! [130]
    12291272QPushButton:open { /* when the button has its menu open */
    1230     background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 
     1273    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
    12311274                                      stop: 0 #dadbde, stop: 1 #f6f7fa);
    12321275}
    12331276
    1234 QPushButton::menu-indicator { 
     1277QPushButton::menu-indicator {
    12351278    image: url(menu_indicator.png);
    1236     subcontrol-origin: padding; 
     1279    subcontrol-origin: padding;
    12371280    subcontrol-position: bottom right;
    12381281}
    12391282
    12401283QPushButton::menu-indicator:pressed, QPushButton::menu-indicator:open {
    1241     position: relative; 
     1284    position: relative;
    12421285    top: 2px; left: 2px; /* shift the arrow by 2 px */
    12431286}
     
    15391582    height: 2px;
    15401583}
     1584
     1585
     1586
     1587
     1588
    15411589//! [142]
    15421590
     
    15701618}
    15711619
    1572 /* Style the tab using the tab sub-control. Note that 
     1620/* Style the tab using the tab sub-control. Note that
    15731621    it reads QTabBar _not_ QTabWidget */
    15741622QTabBar::tab {
    1575     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 
    1576                                 stop: 0 #E1E1E1, stop: 0.4 #DDDDDD, 
     1623    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
     1624                                stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
    15771625                                stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
    15781626    border: 2px solid #C4C4C3;
     
    15851633
    15861634QTabBar::tab:selected, QTabBar::tab:hover {
    1587     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 
    1588                                 stop: 0 #fafafa, stop: 0.4 #f4f4f4, 
     1635    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
     1636                                stop: 0 #fafafa, stop: 0.4 #f4f4f4,
    15891637                                stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
    15901638}
     
    16101658}
    16111659
    1612 /* Style the tab using the tab sub-control. Note that 
     1660/* Style the tab using the tab sub-control. Note that
    16131661    it reads QTabBar _not_ QTabWidget */
    16141662QTabBar::tab {
    1615     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 
    1616                                 stop: 0 #E1E1E1, stop: 0.4 #DDDDDD, 
     1663    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
     1664                                stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
    16171665                                stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
    16181666    border: 2px solid #C4C4C3;
     
    16251673
    16261674QTabBar::tab:selected, QTabBar::tab:hover {
    1627     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 
    1628                                 stop: 0 #fafafa, stop: 0.4 #f4f4f4, 
     1675    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
     1676                                stop: 0 #fafafa, stop: 0.4 #f4f4f4,
    16291677                                stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
    16301678}
     
    16631711QTabWidget::pane { /* The tab widget frame */
    16641712    border-top: 2px solid #C2C7CB;
    1665     position: absolute; 
    1666     top: -0.5em; 
    1667 }
    1668 
    1669 QTabWidget::tab-bar { 
    1670     alignment: center; 
    1671 }
    1672 
    1673 /* Style the tab using the tab sub-control. Note that 
     1713    position: absolute;
     1714    top: -0.5em;
     1715}
     1716
     1717QTabWidget::tab-bar {
     1718    alignment: center;
     1719}
     1720
     1721/* Style the tab using the tab sub-control. Note that
    16741722    it reads QTabBar _not_ QTabWidget */
    16751723QTabBar::tab {
    1676     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 
    1677                                 stop: 0 #E1E1E1, stop: 0.4 #DDDDDD, 
     1724    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
     1725                                stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
    16781726                                stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
    16791727    border: 2px solid #C4C4C3;
     
    16861734
    16871735QTabBar::tab:selected, QTabBar::tab:hover {
    1688     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 
    1689                                 stop: 0 #fafafa, stop: 0.4 #f4f4f4, 
     1736    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
     1737                                stop: 0 #fafafa, stop: 0.4 #f4f4f4,
    16901738                                stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
    16911739}
     
    19101958}
    19111959//! [158]
     1960
     1961
     1962
     1963
     1964
     1965
     1966
     1967
     1968
     1969
     1970
Note: See TracChangeset for help on using the changeset viewer.