Changeset View
Changeset View
Standalone View
Standalone View
src/platformtheme/kfiletreeview_p.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 36 | public: | |||
---|---|---|---|---|---|
68 | * Returns true if the view is currently showing hidden files | 68 | * Returns true if the view is currently showing hidden files | ||
69 | * @since 4.3 | 69 | * @since 4.3 | ||
70 | */ | 70 | */ | ||
71 | bool showHiddenFiles() const; | 71 | bool showHiddenFiles() const; | ||
72 | 72 | | |||
73 | /** | 73 | /** | ||
74 | * @reimplemented | 74 | * @reimplemented | ||
75 | */ | 75 | */ | ||
76 | QSize sizeHint() const Q_DECL_OVERRIDE; | 76 | QSize sizeHint() const override; | ||
77 | 77 | | |||
78 | public Q_SLOTS: | 78 | public Q_SLOTS: | ||
79 | /** | 79 | /** | ||
80 | * Sets whether the dir-only mode is @p enabled. | 80 | * Sets whether the dir-only mode is @p enabled. | ||
81 | * | 81 | * | ||
82 | * In dir-only mode, only directories and subdirectories | 82 | * In dir-only mode, only directories and subdirectories | ||
83 | * are listed in the view. | 83 | * are listed in the view. | ||
84 | */ | 84 | */ | ||
Show All 24 Lines | 104 | Q_SIGNALS: | |||
109 | 109 | | |||
110 | /** | 110 | /** | ||
111 | * This signal is emitted whenever the current @p url has been changed. | 111 | * This signal is emitted whenever the current @p url has been changed. | ||
112 | */ | 112 | */ | ||
113 | void currentChanged(const QUrl &url); | 113 | void currentChanged(const QUrl &url); | ||
114 | 114 | | |||
115 | protected: | 115 | protected: | ||
116 | using QTreeView::currentChanged; | 116 | using QTreeView::currentChanged; | ||
117 | void contextMenuEvent(QContextMenuEvent *) Q_DECL_OVERRIDE; | 117 | void contextMenuEvent(QContextMenuEvent *) override; | ||
118 | 118 | | |||
119 | private: | 119 | private: | ||
120 | class Private; | 120 | class Private; | ||
121 | Private *const d; | 121 | Private *const d; | ||
122 | 122 | | |||
123 | Q_PRIVATE_SLOT(d, void _k_activated(const QModelIndex &)) | 123 | Q_PRIVATE_SLOT(d, void _k_activated(const QModelIndex &)) | ||
124 | Q_PRIVATE_SLOT(d, void _k_currentChanged(const QModelIndex &, const QModelIndex &)) | 124 | Q_PRIVATE_SLOT(d, void _k_currentChanged(const QModelIndex &, const QModelIndex &)) | ||
125 | Q_PRIVATE_SLOT(d, void _k_expanded(const QModelIndex &)) | 125 | Q_PRIVATE_SLOT(d, void _k_expanded(const QModelIndex &)) | ||
126 | }; | 126 | }; | ||
127 | 127 | | |||
128 | #endif | 128 | #endif |