Lines Matching refs:option
50 TorrentDelegateMin :: sizeHint( const QStyleOptionViewItem& option, const Torrent& tor ) const
55 QFont nameFont( option.font );
61 QFont statusFont( option.font );
62 statusFont.setPointSize( int( option.font.pointSize( ) * 0.85 ) );
76 TorrentDelegateMin :: drawTorrent( QPainter * painter, const QStyleOptionViewItem& option, const Torrent& tor ) const
82 QFont nameFont( option.font );
87 QFont statusFont( option.font );
88 statusFont.setPointSize( int( option.font.pointSize( ) * 0.85 ) );
95 if (option.state & QStyle::State_Selected) {
96 QPalette::ColorGroup cg = option.state & QStyle::State_Enabled
98 if (cg == QPalette::Normal && !(option.state & QStyle::State_Active))
101 painter->fillRect(option.rect, option.palette.brush(cg, QPalette::Highlight));
105 if( isPaused || !(option.state & QStyle::State_Enabled ) ) im = QIcon::Disabled;
106 else if( option.state & QStyle::State_Selected ) im = QIcon::Selected;
114 if( isPaused || !(option.state & QStyle::State_Enabled ) ) cg = QPalette::Disabled;
115 if( cg == QPalette::Normal && !(option.state & QStyle::State_Active ) ) cg = QPalette::Inactive;
118 if( option.state & QStyle::State_Selected ) cr = QPalette::HighlightedText;
121 QStyle::State progressBarState( option.state );
127 QRect fillArea( option.rect );
150 painter->setPen( option.palette.color( cg, cr ) );
173 setProgressBarPercentDone( option, tor );