Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kdiroperatordetailview_p.h
Show All 30 Lines | |||||
31 | */ | 31 | */ | ||
32 | class KDirOperatorDetailView : public QTreeView | 32 | class KDirOperatorDetailView : public QTreeView | ||
33 | { | 33 | { | ||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
35 | 35 | | |||
36 | public: | 36 | public: | ||
37 | KDirOperatorDetailView(QWidget *parent = nullptr); | 37 | KDirOperatorDetailView(QWidget *parent = nullptr); | ||
38 | virtual ~KDirOperatorDetailView(); | 38 | virtual ~KDirOperatorDetailView(); | ||
39 | void setModel(QAbstractItemModel *model) Q_DECL_OVERRIDE; | | |||
40 | 39 | | |||
41 | /** | 40 | /** | ||
42 | * Displays either Detail, Tree or DetailTree modes. | 41 | * Displays either Detail, Tree or DetailTree modes. | ||
43 | */ | 42 | */ | ||
44 | virtual bool setViewMode(KFile::FileView viewMode); | 43 | virtual bool setViewMode(KFile::FileView viewMode); | ||
45 | 44 | | |||
46 | protected: | 45 | protected: | ||
47 | bool event(QEvent *event) Q_DECL_OVERRIDE; | 46 | bool event(QEvent *event) Q_DECL_OVERRIDE; | ||
48 | void dragEnterEvent(QDragEnterEvent *event) Q_DECL_OVERRIDE; | 47 | void dragEnterEvent(QDragEnterEvent *event) Q_DECL_OVERRIDE; | ||
49 | void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE; | | |||
50 | void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE; | 48 | void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE; | ||
51 | void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) Q_DECL_OVERRIDE; | 49 | void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) Q_DECL_OVERRIDE; | ||
52 | 50 | | |||
53 | private Q_SLOTS: | | |||
54 | void resetResizing(); | | |||
55 | void expandNameColumn(); | | |||
56 | | ||||
57 | private: | 51 | private: | ||
58 | bool m_resizeColumns; | | |||
59 | bool m_hideDetailColumns; | 52 | bool m_hideDetailColumns; | ||
60 | }; | 53 | }; | ||
61 | 54 | | |||
62 | #endif | 55 | #endif |