Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/PanelView/krinterdetailedview.h
Show All 37 Lines | |||||
38 | class KrInterDetailedView : public QTreeView, public KrInterView | 38 | class KrInterDetailedView : public QTreeView, public KrInterView | ||
39 | { | 39 | { | ||
40 | Q_OBJECT | 40 | Q_OBJECT | ||
41 | 41 | | |||
42 | public: | 42 | public: | ||
43 | KrInterDetailedView(QWidget *parent, KrViewInstance &instance, KConfig *cfg); | 43 | KrInterDetailedView(QWidget *parent, KrViewInstance &instance, KConfig *cfg); | ||
44 | ~KrInterDetailedView() override; | 44 | ~KrInterDetailedView() override; | ||
45 | 45 | | |||
46 | void updateView() Q_DECL_OVERRIDE; | 46 | void updateView() override; | ||
47 | 47 | | |||
48 | bool ensureVisibilityAfterSelect() Q_DECL_OVERRIDE { | 48 | bool ensureVisibilityAfterSelect() override { | ||
49 | return false; | 49 | return false; | ||
50 | } | 50 | } | ||
51 | int itemsPerPage() Q_DECL_OVERRIDE; | 51 | int itemsPerPage() override; | ||
52 | void setSortMode(KrViewProperties::ColumnType sortColumn, bool descending) Q_DECL_OVERRIDE; | 52 | void setSortMode(KrViewProperties::ColumnType sortColumn, bool descending) override; | ||
53 | void setFileIconSize(int size) Q_DECL_OVERRIDE; | 53 | void setFileIconSize(int size) override; | ||
54 | void doRestoreSettings(KConfigGroup grp) Q_DECL_OVERRIDE; | 54 | void doRestoreSettings(KConfigGroup grp) override; | ||
55 | 55 | | |||
56 | protected slots: | 56 | protected slots: | ||
57 | void renameCurrentItem() Q_DECL_OVERRIDE; | 57 | void renameCurrentItem() override; | ||
58 | void sectionResized(int, int, int); | 58 | void sectionResized(int, int, int); | ||
59 | void sectionMoved(int, int, int); | 59 | void sectionMoved(int, int, int); | ||
60 | void currentChanged(const QModelIndex & current, const QModelIndex & previous) Q_DECL_OVERRIDE; | 60 | void currentChanged(const QModelIndex & current, const QModelIndex & previous) override; | ||
61 | 61 | | |||
62 | protected: | 62 | protected: | ||
63 | void setup() Q_DECL_OVERRIDE; | 63 | void setup() override; | ||
64 | void copySettingsFrom(KrView *other) Q_DECL_OVERRIDE; | 64 | void copySettingsFrom(KrView *other) override; | ||
65 | void saveSettings(KConfigGroup grp, KrViewProperties::PropertyType properties) Q_DECL_OVERRIDE; | 65 | void saveSettings(KConfigGroup grp, KrViewProperties::PropertyType properties) override; | ||
66 | 66 | | |||
67 | // Don't do anything, selections are handled by the mouse handler | 67 | // Don't do anything, selections are handled by the mouse handler | ||
68 | void setSelection(const QRect &, QItemSelectionModel::SelectionFlags) Q_DECL_OVERRIDE {} | 68 | void setSelection(const QRect &, QItemSelectionModel::SelectionFlags) override {} | ||
69 | void selectAll() Q_DECL_OVERRIDE {} | 69 | void selectAll() override {} | ||
70 | 70 | | |||
71 | void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE; | 71 | void keyPressEvent(QKeyEvent *e) override; | ||
72 | void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE; | 72 | void mousePressEvent(QMouseEvent *) override; | ||
73 | void mouseReleaseEvent(QMouseEvent *) Q_DECL_OVERRIDE; | 73 | void mouseReleaseEvent(QMouseEvent *) override; | ||
74 | void mouseDoubleClickEvent(QMouseEvent *ev) Q_DECL_OVERRIDE; | 74 | void mouseDoubleClickEvent(QMouseEvent *ev) override; | ||
75 | void mouseMoveEvent(QMouseEvent *) Q_DECL_OVERRIDE; | 75 | void mouseMoveEvent(QMouseEvent *) override; | ||
76 | void wheelEvent(QWheelEvent *) Q_DECL_OVERRIDE; | 76 | void wheelEvent(QWheelEvent *) override; | ||
77 | bool event(QEvent * e) Q_DECL_OVERRIDE; | 77 | bool event(QEvent * e) override; | ||
78 | void dragEnterEvent(QDragEnterEvent *e) Q_DECL_OVERRIDE; | 78 | void dragEnterEvent(QDragEnterEvent *e) override; | ||
79 | void dragMoveEvent(QDragMoveEvent *e) Q_DECL_OVERRIDE; | 79 | void dragMoveEvent(QDragMoveEvent *e) override; | ||
80 | void dragLeaveEvent(QDragLeaveEvent *e) Q_DECL_OVERRIDE; | 80 | void dragLeaveEvent(QDragLeaveEvent *e) override; | ||
81 | void dropEvent(QDropEvent *) Q_DECL_OVERRIDE; | 81 | void dropEvent(QDropEvent *) override; | ||
82 | bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE; | 82 | bool eventFilter(QObject *object, QEvent *event) override; | ||
83 | bool viewportEvent(QEvent * event) Q_DECL_OVERRIDE; | 83 | bool viewportEvent(QEvent * event) override; | ||
84 | void drawRow(QPainter *painter, const QStyleOptionViewItem &options, | 84 | void drawRow(QPainter *painter, const QStyleOptionViewItem &options, | ||
85 | const QModelIndex &index) const Q_DECL_OVERRIDE; | 85 | const QModelIndex &index) const override; | ||
86 | 86 | | |||
87 | QRect itemRect(const FileItem *fileitem) Q_DECL_OVERRIDE; | 87 | QRect itemRect(const FileItem *fileitem) override; | ||
88 | 88 | | |||
89 | void showContextMenu(const QPoint & p) Q_DECL_OVERRIDE; | 89 | void showContextMenu(const QPoint & p) override; | ||
90 | void recalculateColumnSizes(); | 90 | void recalculateColumnSizes(); | ||
91 | 91 | | |||
92 | private: | 92 | private: | ||
93 | QFont _viewFont; | 93 | QFont _viewFont; | ||
94 | bool _autoResizeColumns; | 94 | bool _autoResizeColumns; | ||
95 | }; | 95 | }; | ||
96 | #endif // __krinterview__ | 96 | #endif // __krinterview__ |