Changeset View
Changeset View
Standalone View
Standalone View
krusader/DiskUsage/dulines.h
Show All 33 Lines | |||||
34 | class DULinesItemDelegate; | 34 | class DULinesItemDelegate; | ||
35 | 35 | | |||
36 | class DULines : public KrTreeWidget | 36 | class DULines : public KrTreeWidget | ||
37 | { | 37 | { | ||
38 | Q_OBJECT | 38 | Q_OBJECT | ||
39 | 39 | | |||
40 | public: | 40 | public: | ||
41 | explicit DULines(DiskUsage *usage); | 41 | explicit DULines(DiskUsage *usage); | ||
42 | ~DULines(); | 42 | ~DULines() override; | ||
43 | 43 | | |||
44 | File * getCurrentFile(); | 44 | File * getCurrentFile(); | ||
45 | 45 | | |||
46 | public slots: | 46 | public slots: | ||
47 | void slotDirChanged(Directory *dirEntry); | 47 | void slotDirChanged(Directory *dirEntry); | ||
48 | void sectionResized(int); | 48 | void sectionResized(int); | ||
49 | void slotRightClicked(QTreeWidgetItem *, const QPoint &); | 49 | void slotRightClicked(QTreeWidgetItem *, const QPoint &); | ||
50 | void slotChanged(File *); | 50 | void slotChanged(File *); | ||
51 | void slotDeleted(File *); | 51 | void slotDeleted(File *); | ||
52 | void slotShowFileSizes(); | 52 | void slotShowFileSizes(); | ||
53 | void slotRefresh(); | 53 | void slotRefresh(); | ||
54 | 54 | | |||
55 | protected: | 55 | protected: | ||
56 | DiskUsage *diskUsage; | 56 | DiskUsage *diskUsage; | ||
57 | 57 | | |||
58 | virtual bool event(QEvent * event) Q_DECL_OVERRIDE; | 58 | bool event(QEvent * event) Q_DECL_OVERRIDE; | ||
59 | virtual void mouseDoubleClickEvent(QMouseEvent * e) Q_DECL_OVERRIDE; | 59 | void mouseDoubleClickEvent(QMouseEvent * e) Q_DECL_OVERRIDE; | ||
60 | virtual void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE; | 60 | void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE; | ||
61 | virtual void resizeEvent(QResizeEvent *) Q_DECL_OVERRIDE; | 61 | void resizeEvent(QResizeEvent *) Q_DECL_OVERRIDE; | ||
62 | 62 | | |||
63 | private: | 63 | private: | ||
64 | QPixmap createPixmap(int percent, int maxPercent, int maxWidth); | 64 | QPixmap createPixmap(int percent, int maxPercent, int maxWidth); | ||
65 | 65 | | |||
66 | bool doubleClicked(QTreeWidgetItem * item); | 66 | bool doubleClicked(QTreeWidgetItem * item); | ||
67 | 67 | | |||
68 | bool refreshNeeded; | 68 | bool refreshNeeded; | ||
69 | bool started; | 69 | bool started; | ||
Show All 9 Lines |