Changeset View
Changeset View
Standalone View
Standalone View
kstyle/breezestyle.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 4870 Lines • ▼ Show 20 Line(s) | 4868 | } else { | |||
---|---|---|---|---|---|
4871 | { | 4871 | { | ||
4872 | painter->setClipRect( rect, Qt::IntersectClip ); | 4872 | painter->setClipRect( rect, Qt::IntersectClip ); | ||
4873 | if( reverse ) rect.setHeight( Metrics::ProgressBar_Thickness ); | 4873 | if( reverse ) rect.setHeight( Metrics::ProgressBar_Thickness ); | ||
4874 | else rect.setTop( rect.top() - Metrics::ProgressBar_Thickness + rect.height() ); | 4874 | else rect.setTop( rect.top() - Metrics::ProgressBar_Thickness + rect.height() ); | ||
4875 | } | 4875 | } | ||
4876 | 4876 | | |||
4877 | } | 4877 | } | ||
4878 | 4878 | | |||
4879 | _helper->renderProgressBarContents( painter, rect, palette.color( QPalette::Highlight ) ); | 4879 | QColor contentsColor( | ||
4880 | painter->setClipRegion( oldClipRegion ); | 4880 | option->state.testFlag( QStyle::State_Selected ) ? | ||
4881 | palette.color( QPalette::Window ) : | ||||
4882 | palette.color( QPalette::Highlight ) ); | ||||
4881 | 4883 | | |||
4884 | _helper->renderProgressBarContents( painter, rect, contentsColor ); | ||||
4885 | painter->setClipRegion( oldClipRegion ); | ||||
4882 | } | 4886 | } | ||
4883 | 4887 | | |||
4884 | return true; | 4888 | return true; | ||
4885 | 4889 | | |||
4886 | } | 4890 | } | ||
4887 | 4891 | | |||
4888 | //___________________________________________________________________________________ | 4892 | //___________________________________________________________________________________ | ||
4889 | bool Style::drawProgressBarGrooveControl( const QStyleOption* option, QPainter* painter, const QWidget* ) const | 4893 | bool Style::drawProgressBarGrooveControl( const QStyleOption* option, QPainter* painter, const QWidget* ) const | ||
▲ Show 20 Lines • Show All 2164 Lines • Show Last 20 Lines |