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 5382 Lines • ▼ Show 20 Line(s) | 5336 | { | |||
---|---|---|---|---|---|
5383 | return false; | 5383 | return false; | ||
5384 | 5384 | | |||
5385 | } | 5385 | } | ||
5386 | 5386 | | |||
5387 | //___________________________________________________________________________________ | 5387 | //___________________________________________________________________________________ | ||
5388 | bool Style::drawRubberBandControl( const QStyleOption* option, QPainter* painter, const QWidget* ) const | 5388 | bool Style::drawRubberBandControl( const QStyleOption* option, QPainter* painter, const QWidget* ) const | ||
5389 | { | 5389 | { | ||
5390 | 5390 | | |||
5391 | const auto& palette( option->palette ); | 5391 | painter->save(); | ||
5392 | const auto rect( option->rect ); | | |||
5393 | 5392 | | |||
5393 | painter->setRenderHints( QPainter::Antialiasing ); | ||||
5394 | const auto& palette( option->palette ); | ||||
5394 | auto color = palette.color( QPalette::Highlight ); | 5395 | auto color = palette.color( QPalette::Highlight ); | ||
5395 | painter->setPen( KColorUtils::mix( color, palette.color( QPalette::Active, QPalette::WindowText ) ) ); | 5396 | QPen pen = KColorUtils::mix( color, palette.color( QPalette::Active, QPalette::WindowText ) ); | ||
5397 | pen.setJoinStyle(Qt::RoundJoin); | ||||
5398 | painter->setPen( pen ); | ||||
5396 | color.setAlpha( 50 ); | 5399 | color.setAlpha( 50 ); | ||
5397 | painter->setBrush( color ); | 5400 | painter->setBrush( color ); | ||
5398 | painter->setClipRegion( rect ); | 5401 | painter->drawRect( _helper->strokedRect( option->rect ) ); | ||
5399 | painter->drawRect( rect.adjusted( 0, 0, -1, -1 ) ); | 5402 | | ||
5403 | painter->restore(); | ||||
5400 | return true; | 5404 | return true; | ||
5401 | 5405 | | |||
5402 | } | 5406 | } | ||
5403 | 5407 | | |||
5404 | //___________________________________________________________________________________ | 5408 | //___________________________________________________________________________________ | ||
5405 | bool Style::drawHeaderSectionControl( const QStyleOption* option, QPainter* painter, const QWidget* widget ) const | 5409 | bool Style::drawHeaderSectionControl( const QStyleOption* option, QPainter* painter, const QWidget* widget ) const | ||
5406 | { | 5410 | { | ||
5407 | 5411 | | |||
▲ Show 20 Lines • Show All 1873 Lines • Show Last 20 Lines |