Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/kurlcompletion.h
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Line(s) | 49 | public: | |||
---|---|---|---|---|---|
164 | QString replacedPath(const QString &text) const; | 164 | QString replacedPath(const QString &text) const; | ||
165 | 165 | | |||
166 | /** | 166 | /** | ||
167 | * @internal I'll let ossi add a real one to KShell :) | 167 | * @internal I'll let ossi add a real one to KShell :) | ||
168 | */ | 168 | */ | ||
169 | static QString replacedPath(const QString &text, | 169 | static QString replacedPath(const QString &text, | ||
170 | bool replaceHome, bool replaceEnv = true); | 170 | bool replaceHome, bool replaceEnv = true); | ||
171 | 171 | | |||
172 | /** | ||||
173 | * Sets the mimetype filters for the file dialog. | ||||
174 | * @see QFileDialog::setMimeTypeFilters() | ||||
175 | * @since 5.38 | ||||
176 | */ | ||||
177 | void setMimeTypeFilters(const QStringList &mimeTypes); | ||||
178 | | ||||
179 | /** | ||||
180 | * Returns the mimetype filters for the file dialog. | ||||
181 | * @see QFileDialog::mimeTypeFilters() | ||||
182 | * @since 5.38 | ||||
183 | */ | ||||
184 | QStringList mimeTypeFilters() const; | ||||
185 | | ||||
172 | protected: | 186 | protected: | ||
173 | // Called by KCompletion, adds '/' to directories | 187 | // Called by KCompletion, adds '/' to directories | ||
174 | void postProcessMatch(QString *match) const Q_DECL_OVERRIDE; | 188 | void postProcessMatch(QString *match) const Q_DECL_OVERRIDE; | ||
175 | void postProcessMatches(QStringList *matches) const Q_DECL_OVERRIDE; | 189 | void postProcessMatches(QStringList *matches) const Q_DECL_OVERRIDE; | ||
176 | void postProcessMatches(KCompletionMatches *matches) const Q_DECL_OVERRIDE; | 190 | void postProcessMatches(KCompletionMatches *matches) const Q_DECL_OVERRIDE; | ||
177 | 191 | | |||
178 | void customEvent(QEvent *e) Q_DECL_OVERRIDE; // KF6 TODO: remove | 192 | void customEvent(QEvent *e) Q_DECL_OVERRIDE; // KF6 TODO: remove | ||
179 | 193 | | |||
180 | private: | 194 | private: | ||
181 | KUrlCompletionPrivate *const d; | 195 | KUrlCompletionPrivate *const d; | ||
182 | 196 | | |||
183 | Q_PRIVATE_SLOT(d, void _k_slotEntries(KIO::Job *, const KIO::UDSEntryList &)) | 197 | Q_PRIVATE_SLOT(d, void _k_slotEntries(KIO::Job *, const KIO::UDSEntryList &)) | ||
184 | Q_PRIVATE_SLOT(d, void _k_slotIOFinished(KJob *)) | 198 | Q_PRIVATE_SLOT(d, void _k_slotIOFinished(KJob *)) | ||
185 | }; | 199 | }; | ||
186 | 200 | | |||
187 | #endif // KURLCOMPLETION_H | 201 | #endif // KURLCOMPLETION_H |