Ignore:
Timestamp:
Nov 6, 2007, 11:27:57 PM (18 years ago)
Author:
dmik
Message:

Styles: Implemented the first version of the Warp4 style (contributed by Cornelis Bockemuehl).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/widgets/qscrollbar.cpp

    r2 r174  
    941941        flags |= QStyle::Style_Horizontal;
    942942
     943    // For the Warp4 style we need to always check also the "add line" and "sub line"
     944    // buttons (they could be activated/deactivated!), so we include them here
     945    // for every drawing operation
     946    if ( style().styleHint( QStyle::SH_GUIStyle ) == QStyle::PMStyle )
     947        controls = controls |
     948                   QStyle::SC_ScrollBarSubLine |
     949                   QStyle::SC_ScrollBarAddLine;
     950
    943951    style().drawComplexControl(QStyle::CC_ScrollBar, p, this, rect(), colorGroup(),
    944952                               flags, (QStyle::SubControl) controls,
Note: See TracChangeset for help on using the changeset viewer.