Changeset View
Changeset View
Standalone View
Standalone View
krusader/Dialogs/percentalsplitter.h
Show All 24 Lines | |||||
25 | #include <QSplitter> | 25 | #include <QSplitter> | ||
26 | #include <QLabel> | 26 | #include <QLabel> | ||
27 | 27 | | |||
28 | class PercentalSplitter : public QSplitter | 28 | class PercentalSplitter : public QSplitter | ||
29 | { | 29 | { | ||
30 | Q_OBJECT | 30 | Q_OBJECT | ||
31 | 31 | | |||
32 | public: | 32 | public: | ||
33 | explicit PercentalSplitter(QWidget * parent = 0); | 33 | explicit PercentalSplitter(QWidget * parent = nullptr); | ||
34 | virtual ~PercentalSplitter(); | 34 | ~PercentalSplitter() override; | ||
35 | 35 | | |||
36 | QString toolTipString(int p); | 36 | QString toolTipString(int p); | ||
37 | 37 | | |||
38 | protected: | 38 | protected: | ||
39 | virtual void showEvent(QShowEvent * event) Q_DECL_OVERRIDE; | 39 | void showEvent(QShowEvent * event) Q_DECL_OVERRIDE; | ||
40 | 40 | | |||
41 | protected slots: | 41 | protected slots: | ||
42 | void slotSplitterMoved(int pos, int index); | 42 | void slotSplitterMoved(int pos, int index); | ||
43 | 43 | | |||
44 | private: | 44 | private: | ||
45 | QLabel * label; | 45 | QLabel * label; | ||
46 | int opaqueOldPos; | 46 | int opaqueOldPos; | ||
47 | QPoint labelLocation; | 47 | QPoint labelLocation; | ||
48 | }; | 48 | }; | ||
49 | 49 | | |||
50 | #endif /* __PERCENTAL_SPLITTER__ */ | 50 | #endif /* __PERCENTAL_SPLITTER__ */ |