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 2572 Lines • ▼ Show 20 Line(s) | 2562 | { | |||
---|---|---|---|---|---|
2573 | const int frameWidth( pixelMetric( PM_ComboBoxFrameWidth, option, widget ) ); | 2573 | const int frameWidth( pixelMetric( PM_ComboBoxFrameWidth, option, widget ) ); | ||
2574 | if( !flat ) size = expandSize( size, frameWidth ); | 2574 | if( !flat ) size = expandSize( size, frameWidth ); | ||
2575 | 2575 | | |||
2576 | // make sure there is enough height for the button | 2576 | // make sure there is enough height for the button | ||
2577 | size.setHeight( qMax( size.height(), int(Metrics::MenuButton_IndicatorWidth) ) ); | 2577 | size.setHeight( qMax( size.height(), int(Metrics::MenuButton_IndicatorWidth) ) ); | ||
2578 | 2578 | | |||
2579 | // add button width and spacing | 2579 | // add button width and spacing | ||
2580 | size.rwidth() += Metrics::MenuButton_IndicatorWidth+2; | 2580 | size.rwidth() += Metrics::MenuButton_IndicatorWidth+2; | ||
2581 | size.rwidth() += Metrics::Button_ItemSpacing; | ||||
2581 | 2582 | | |||
2582 | return size; | 2583 | return size; | ||
2583 | 2584 | | |||
2584 | } | 2585 | } | ||
2585 | 2586 | | |||
2586 | //______________________________________________________________ | 2587 | //______________________________________________________________ | ||
2587 | QSize Style::spinBoxSizeFromContents( const QStyleOption* option, const QSize& contentsSize, const QWidget* widget ) const | 2588 | QSize Style::spinBoxSizeFromContents( const QStyleOption* option, const QSize& contentsSize, const QWidget* widget ) const | ||
2588 | { | 2589 | { | ||
▲ Show 20 Lines • Show All 4688 Lines • Show Last 20 Lines |