Changeset View
Changeset View
Standalone View
Standalone View
kstyle/breezestyle.h
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | 79 | { | |||
---|---|---|---|---|---|
87 | //* constructor | 87 | //* constructor | ||
88 | explicit Style( void ); | 88 | explicit Style( void ); | ||
89 | 89 | | |||
90 | //* destructor | 90 | //* destructor | ||
91 | virtual ~Style( void ); | 91 | virtual ~Style( void ); | ||
92 | 92 | | |||
93 | //* needed to avoid warnings at compilation time | 93 | //* needed to avoid warnings at compilation time | ||
94 | using ParentStyleClass::polish; | 94 | using ParentStyleClass::polish; | ||
95 | using ParentStyleClass::unpolish; | | |||
96 | 95 | | |||
97 | //* widget polishing | 96 | //* widget polishing | ||
98 | virtual void polish( QWidget* ); | 97 | virtual void polish( QWidget* ); | ||
99 | 98 | | |||
100 | //* widget unpolishing | 99 | //* widget unpolishing | ||
101 | virtual void unpolish( QWidget* ); | 100 | virtual void unpolish( QWidget* ); | ||
102 | 101 | | |||
102 | //* application unpolishing | ||||
103 | void unpolish( QApplication* ) override; | ||||
104 | | ||||
103 | //* polish scrollarea | 105 | //* polish scrollarea | ||
104 | void polishScrollArea( QAbstractScrollArea* ); | 106 | void polishScrollArea( QAbstractScrollArea* ); | ||
105 | 107 | | |||
106 | //* pixel metrics | 108 | //* pixel metrics | ||
107 | virtual int pixelMetric(PixelMetric, const QStyleOption* = nullptr, const QWidget* = nullptr) const; | 109 | virtual int pixelMetric(PixelMetric, const QStyleOption* = nullptr, const QWidget* = nullptr) const; | ||
108 | 110 | | |||
109 | //* style hints | 111 | //* style hints | ||
110 | virtual int styleHint(StyleHint, const QStyleOption* = nullptr, const QWidget* = nullptr, QStyleHintReturn* = nullptr) const; | 112 | virtual int styleHint(StyleHint, const QStyleOption* = nullptr, const QWidget* = nullptr, QStyleHintReturn* = nullptr) const; | ||
▲ Show 20 Lines • Show All 355 Lines • ▼ Show 20 Line(s) | |||||
466 | //* return true if passed widget is a menu title (KMenu::addTitle) | 468 | //* return true if passed widget is a menu title (KMenu::addTitle) | ||
467 | bool isMenuTitle( const QWidget* ) const; | 469 | bool isMenuTitle( const QWidget* ) const; | ||
468 | 470 | | |||
469 | //* return true if passed widget is a menu title (KMenu::addTitle) | 471 | //* return true if passed widget is a menu title (KMenu::addTitle) | ||
470 | bool hasAlteredBackground( const QWidget* ) const; | 472 | bool hasAlteredBackground( const QWidget* ) const; | ||
471 | 473 | | |||
472 | private: | 474 | private: | ||
473 | 475 | | |||
476 | //* shared cleanup for unpolish and dtor | ||||
477 | void cleanup(); | ||||
478 | | ||||
474 | //*@name scrollbar button types (for addLine and subLine ) | 479 | //*@name scrollbar button types (for addLine and subLine ) | ||
475 | //@{ | 480 | //@{ | ||
476 | ScrollBarButtonType _addLineButtons; | 481 | ScrollBarButtonType _addLineButtons; | ||
477 | ScrollBarButtonType _subLineButtons; | 482 | ScrollBarButtonType _subLineButtons; | ||
478 | //@} | 483 | //@} | ||
479 | 484 | | |||
480 | //* helper | 485 | //* helper | ||
481 | Helper* _helper; | 486 | Helper* _helper; | ||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |