Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/sublime/idealbuttonbarwidget.h
Show All 31 Lines | |||||
32 | class KConfigGroup; | 32 | class KConfigGroup; | ||
33 | 33 | | |||
34 | namespace Sublime | 34 | namespace Sublime | ||
35 | { | 35 | { | ||
36 | 36 | | |||
37 | class MainWindow; | 37 | class MainWindow; | ||
38 | class IdealController; | 38 | class IdealController; | ||
39 | class IdealDockWidget; | 39 | class IdealDockWidget; | ||
40 | class IdealButtonBarLayout; | ||||
40 | class View; | 41 | class View; | ||
41 | class Area; | 42 | class Area; | ||
42 | 43 | | |||
43 | class IdealButtonBarWidget: public QWidget | 44 | class IdealButtonBarWidget: public QWidget | ||
44 | { | 45 | { | ||
45 | Q_OBJECT | 46 | Q_OBJECT | ||
46 | 47 | | |||
47 | public: | 48 | public: | ||
Show All 40 Lines | 81 | private: | |||
88 | 89 | | |||
89 | void addButtonToOrder(const IdealToolButton* button); | 90 | void addButtonToOrder(const IdealToolButton* button); | ||
90 | 91 | | |||
91 | Qt::DockWidgetArea m_area; | 92 | Qt::DockWidgetArea m_area; | ||
92 | IdealController* m_controller; | 93 | IdealController* m_controller; | ||
93 | QWidget* m_corner; | 94 | QWidget* m_corner; | ||
94 | bool m_showState; | 95 | bool m_showState; | ||
95 | QStringList m_buttonsOrder; | 96 | QStringList m_buttonsOrder; | ||
97 | IdealButtonBarLayout* m_buttonsLayout; | ||||
kossebau: Even while not really needed for the API used, let's use the final type `IdealButtonBarLayout`… | |||||
96 | }; | 98 | }; | ||
97 | 99 | | |||
98 | } | 100 | } | ||
99 | 101 | | |||
100 | #endif // IDEALBUTTONBARWIDGET_H | 102 | #endif // IDEALBUTTONBARWIDGET_H |
Even while not really needed for the API used, let's use the final type IdealButtonBarLayout, otherwise the code reader could assume that potentially different subclasses of QLayout might be used with this member.