Changeset View
Changeset View
Standalone View
Standalone View
krusader/Dialogs/krspecialwidgets.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | class KRPie : public QWidget | 42 | class KRPie : public QWidget | ||
43 | { | 43 | { | ||
44 | Q_OBJECT | 44 | Q_OBJECT | ||
45 | public: | 45 | public: | ||
46 | explicit KRPie(KIO::filesize_t _totalSize, QWidget *parent = nullptr); | 46 | explicit KRPie(KIO::filesize_t _totalSize, QWidget *parent = nullptr); | ||
47 | void addSlice(KIO::filesize_t size, QString label); | 47 | void addSlice(KIO::filesize_t size, QString label); | ||
48 | 48 | | |||
49 | protected: | 49 | protected: | ||
50 | void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE; | 50 | void paintEvent(QPaintEvent *) override; | ||
51 | 51 | | |||
52 | private: | 52 | private: | ||
53 | QList<KRPieSlice> slices; | 53 | QList<KRPieSlice> slices; | ||
54 | KIO::filesize_t totalSize, sizeLeft; | 54 | KIO::filesize_t totalSize, sizeLeft; | ||
55 | static QColor colors[ 12 ]; | 55 | static QColor colors[ 12 ]; | ||
56 | }; | 56 | }; | ||
57 | 57 | | |||
58 | class KRFSDisplay : public QWidget | 58 | class KRFSDisplay : public QWidget | ||
Show All 25 Lines | 61 | public: | |||
84 | inline void setEmpty(bool e) { | 84 | inline void setEmpty(bool e) { | ||
85 | empty = e; | 85 | empty = e; | ||
86 | } | 86 | } | ||
87 | inline void setSupermount(bool s) { | 87 | inline void setSupermount(bool s) { | ||
88 | supermount = s; | 88 | supermount = s; | ||
89 | } | 89 | } | ||
90 | 90 | | |||
91 | protected: | 91 | protected: | ||
92 | void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE; | 92 | void paintEvent(QPaintEvent *) override; | ||
93 | 93 | | |||
94 | private: | 94 | private: | ||
95 | KIO::filesize_t totalSpace, freeSpace; | 95 | KIO::filesize_t totalSpace, freeSpace; | ||
96 | QString alias, realName; | 96 | QString alias, realName; | ||
97 | bool mounted, empty, supermount; | 97 | bool mounted, empty, supermount; | ||
98 | }; | 98 | }; | ||
99 | 99 | | |||
100 | class KRPieSlice | 100 | class KRPieSlice | ||
Show All 27 Lines |