Changeset View
Changeset View
Standalone View
Standalone View
src/platformtheme/kdeplatformfiledialoghelper.h
Show All 28 Lines | |||||
29 | class KDEPlatformFileDialog : public KDEPlatformFileDialogBase | 29 | class KDEPlatformFileDialog : public KDEPlatformFileDialogBase | ||
30 | { | 30 | { | ||
31 | Q_OBJECT | 31 | Q_OBJECT | ||
32 | public: | 32 | public: | ||
33 | friend class KDEPlatformFileDialogHelper; | 33 | friend class KDEPlatformFileDialogHelper; | ||
34 | 34 | | |||
35 | explicit KDEPlatformFileDialog(); | 35 | explicit KDEPlatformFileDialog(); | ||
36 | QUrl directory() Q_DECL_OVERRIDE; | 36 | QUrl directory() Q_DECL_OVERRIDE; | ||
37 | void selectMimeTypeFilter(const QString &filter) Q_DECL_OVERRIDE; | ||||
37 | void selectNameFilter(const QString &filter) Q_DECL_OVERRIDE; | 38 | void selectNameFilter(const QString &filter) Q_DECL_OVERRIDE; | ||
38 | void setDirectory(const QUrl &directory) Q_DECL_OVERRIDE; | 39 | void setDirectory(const QUrl &directory) Q_DECL_OVERRIDE; | ||
39 | void selectFile(const QUrl &filename) Q_DECL_OVERRIDE; | 40 | void selectFile(const QUrl &filename) Q_DECL_OVERRIDE; | ||
40 | void setViewMode(QFileDialogOptions::ViewMode view); | 41 | void setViewMode(QFileDialogOptions::ViewMode view); | ||
41 | void setFileMode(QFileDialogOptions::FileMode mode); | 42 | void setFileMode(QFileDialogOptions::FileMode mode); | ||
42 | void setCustomLabel(QFileDialogOptions::DialogLabel label, const QString & text); | 43 | void setCustomLabel(QFileDialogOptions::DialogLabel label, const QString & text); | ||
44 | QString selectedMimeTypeFilter() Q_DECL_OVERRIDE; | ||||
43 | QString selectedNameFilter() Q_DECL_OVERRIDE; | 45 | QString selectedNameFilter() Q_DECL_OVERRIDE; | ||
44 | QList<QUrl> selectedFiles() Q_DECL_OVERRIDE; | 46 | QList<QUrl> selectedFiles() Q_DECL_OVERRIDE; | ||
45 | 47 | | |||
46 | protected: | 48 | protected: | ||
47 | KFileWidget *m_fileWidget; | 49 | KFileWidget *m_fileWidget; | ||
48 | }; | 50 | }; | ||
49 | 51 | | |||
50 | class KDEPlatformFileDialogHelper : public QPlatformFileDialogHelper | 52 | class KDEPlatformFileDialogHelper : public QPlatformFileDialogHelper | ||
51 | { | 53 | { | ||
52 | Q_OBJECT | 54 | Q_OBJECT | ||
53 | public: | 55 | public: | ||
54 | KDEPlatformFileDialogHelper(); | 56 | KDEPlatformFileDialogHelper(); | ||
55 | virtual ~KDEPlatformFileDialogHelper(); | 57 | virtual ~KDEPlatformFileDialogHelper(); | ||
56 | 58 | | |||
57 | void initializeDialog(); | 59 | void initializeDialog(); | ||
58 | 60 | | |||
59 | bool defaultNameFilterDisables() const Q_DECL_OVERRIDE; | 61 | bool defaultNameFilterDisables() const Q_DECL_OVERRIDE; | ||
60 | QUrl directory() const Q_DECL_OVERRIDE; | 62 | QUrl directory() const Q_DECL_OVERRIDE; | ||
61 | QList<QUrl> selectedFiles() const Q_DECL_OVERRIDE; | 63 | QList<QUrl> selectedFiles() const Q_DECL_OVERRIDE; | ||
64 | #if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0) | ||||
65 | QString selectedMimeTypeFilter() const Q_DECL_OVERRIDE; | ||||
66 | void selectMimeTypeFilter(const QString &filter) Q_DECL_OVERRIDE; | ||||
67 | #endif | ||||
anthonyfieroni: Better overrites them, then ifdef in implementation | |||||
Not possible, only QPlatformFileDialogHelper >= 5.9 has those methods. elvisangelaccio: Not possible, only QPlatformFileDialogHelper >= 5.9 has those methods. | |||||
62 | QString selectedNameFilter() const Q_DECL_OVERRIDE; | 68 | QString selectedNameFilter() const Q_DECL_OVERRIDE; | ||
63 | void selectNameFilter(const QString &filter) Q_DECL_OVERRIDE; | 69 | void selectNameFilter(const QString &filter) Q_DECL_OVERRIDE; | ||
64 | void selectFile(const QUrl &filename) Q_DECL_OVERRIDE; | 70 | void selectFile(const QUrl &filename) Q_DECL_OVERRIDE; | ||
65 | void setFilter() Q_DECL_OVERRIDE; | 71 | void setFilter() Q_DECL_OVERRIDE; | ||
66 | void setDirectory(const QUrl &directory) Q_DECL_OVERRIDE; | 72 | void setDirectory(const QUrl &directory) Q_DECL_OVERRIDE; | ||
67 | bool isSupportedUrl(const QUrl& url) const Q_DECL_OVERRIDE; | 73 | bool isSupportedUrl(const QUrl& url) const Q_DECL_OVERRIDE; | ||
68 | 74 | | |||
69 | void exec() Q_DECL_OVERRIDE; | 75 | void exec() Q_DECL_OVERRIDE; | ||
Show All 12 Lines |
Better overrites them, then ifdef in implementation