Changeset 8329


Ignore:
Timestamp:
May 4, 2009, 4:04:43 AM (12 years ago)
Author:
charles
Message:

(trunk qt) progressbar state/small improvements from kjg

Location:
trunk/qt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/file-tree.cc

    r8188 r8329  
    534534    {
    535535        QStyleOptionProgressBar p;
    536         p.state = QStyle::State_Enabled;
     536        p.state = option.state | QStyle::State_Small;
    537537        p.direction = QApplication::layoutDirection();
    538538        p.rect = option.rect;
     
    551551    {
    552552        QStyleOptionButton o;
    553         o.state = QStyle::State_Enabled;
     553        o.state = option.state;
    554554        o.direction = QApplication::layoutDirection();
    555555        o.rect.setSize( QSize( 20, option.rect.height( ) ) );
  • trunk/qt/torrent-delegate-min.cc

    r8188 r8329  
    150150    myProgressBarStyle->palette = option.palette;
    151151    myProgressBarStyle->palette.setCurrentColorGroup( QPalette::Disabled );
    152     myProgressBarStyle->state = QStyle::State_Off;
     152    myProgressBarStyle->state = option.state | QStyle::State_Small;
    153153    myProgressBarStyle->progress = int(myProgressBarStyle->minimum + ((tor.percentDone() * (myProgressBarStyle->maximum - myProgressBarStyle->minimum))));
    154154    style->drawControl( QStyle::CE_ProgressBar, myProgressBarStyle, painter );
  • trunk/qt/torrent-delegate.cc

    r8192 r8329  
    365365    myProgressBarStyle->palette = option.palette;
    366366    myProgressBarStyle->palette.setCurrentColorGroup( QPalette::Disabled );
    367     myProgressBarStyle->state = QStyle::State_Off;
     367    myProgressBarStyle->state = option.state | QStyle::State_Small;
    368368    myProgressBarStyle->progress = int(myProgressBarStyle->minimum + ((tor.percentDone() * (myProgressBarStyle->maximum - myProgressBarStyle->minimum))));
    369369    style->drawControl( QStyle::CE_ProgressBar, myProgressBarStyle, painter );
Note: See TracChangeset for help on using the changeset viewer.