Changeset View
Changeset View
Standalone View
Standalone View
src/platformtheme/kdirselectdialog_p.h
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 91 | static QUrl selectDirectory(const QUrl &startDir = QUrl(), | |||
---|---|---|---|---|---|
92 | bool localOnly = false, QWidget *parent = 0L, | 92 | bool localOnly = false, QWidget *parent = 0L, | ||
93 | const QString &caption = QString()); | 93 | const QString &caption = QString()); | ||
94 | 94 | | |||
95 | /** | 95 | /** | ||
96 | * @return The path for the root node | 96 | * @return The path for the root node | ||
97 | */ | 97 | */ | ||
98 | QUrl startDir() const; | 98 | QUrl startDir() const; | ||
99 | 99 | | |||
100 | QUrl directory() Q_DECL_OVERRIDE; | 100 | QUrl directory() override; | ||
101 | void selectMimeTypeFilter(const QString &filter) Q_DECL_OVERRIDE; | 101 | void selectMimeTypeFilter(const QString &filter) override; | ||
102 | void selectNameFilter(const QString &filter) Q_DECL_OVERRIDE; | 102 | void selectNameFilter(const QString &filter) override; | ||
103 | void setDirectory(const QUrl &directory) Q_DECL_OVERRIDE; | 103 | void setDirectory(const QUrl &directory) override; | ||
104 | void selectFile(const QUrl &filename) Q_DECL_OVERRIDE; | 104 | void selectFile(const QUrl &filename) override; | ||
105 | QString selectedMimeTypeFilter() Q_DECL_OVERRIDE; | 105 | QString selectedMimeTypeFilter() override; | ||
106 | QString selectedNameFilter() Q_DECL_OVERRIDE; | 106 | QString selectedNameFilter() override; | ||
107 | QList<QUrl> selectedFiles() Q_DECL_OVERRIDE; | 107 | QList<QUrl> selectedFiles() override; | ||
108 | 108 | | |||
109 | public Q_SLOTS: | 109 | public Q_SLOTS: | ||
110 | /** | 110 | /** | ||
111 | * Sets the current @p url in the dialog. | 111 | * Sets the current @p url in the dialog. | ||
112 | */ | 112 | */ | ||
113 | void setCurrentUrl(const QUrl &url); | 113 | void setCurrentUrl(const QUrl &url); | ||
114 | 114 | | |||
115 | protected: | 115 | protected: | ||
116 | void accept() Q_DECL_OVERRIDE; | 116 | void accept() override; | ||
117 | 117 | | |||
118 | /** | 118 | /** | ||
119 | * Reimplemented for saving the dialog geometry. | 119 | * Reimplemented for saving the dialog geometry. | ||
120 | */ | 120 | */ | ||
121 | void hideEvent(QHideEvent *event) Q_DECL_OVERRIDE; | 121 | void hideEvent(QHideEvent *event) override; | ||
122 | 122 | | |||
123 | private: | 123 | private: | ||
124 | class Private; | 124 | class Private; | ||
125 | Private *const d; | 125 | Private *const d; | ||
126 | 126 | | |||
127 | Q_PRIVATE_SLOT(d, void slotCurrentChanged()) | 127 | Q_PRIVATE_SLOT(d, void slotCurrentChanged()) | ||
128 | Q_PRIVATE_SLOT(d, void slotExpand(const QModelIndex &)) | 128 | Q_PRIVATE_SLOT(d, void slotExpand(const QModelIndex &)) | ||
129 | Q_PRIVATE_SLOT(d, void slotUrlActivated(const QString &)) | 129 | Q_PRIVATE_SLOT(d, void slotUrlActivated(const QString &)) | ||
Show All 9 Lines |