Changeset View
Changeset View
Standalone View
Standalone View
src/appchooserdialog.h
Show All 32 Lines | |||||
33 | public: | 33 | public: | ||
34 | AppChooserDialog(const QStringList &choices, const QString &defaultApp, const QString &fileName, QDialog *parent = nullptr, Qt::WindowFlags flags = {}); | 34 | AppChooserDialog(const QStringList &choices, const QString &defaultApp, const QString &fileName, QDialog *parent = nullptr, Qt::WindowFlags flags = {}); | ||
35 | ~AppChooserDialog(); | 35 | ~AppChooserDialog(); | ||
36 | 36 | | |||
37 | void updateChoices(const QStringList &choices); | 37 | void updateChoices(const QStringList &choices); | ||
38 | 38 | | |||
39 | QString selectedApplication() const; | 39 | QString selectedApplication() const; | ||
40 | 40 | | |||
41 | private: | 41 | private Q_SLOTS: | ||
42 | void addDialogItems(); | 42 | void addDialogItems(); | ||
43 | 43 | | |||
44 | private: | ||||
45 | | ||||
44 | QStringList m_choices; | 46 | QStringList m_choices; | ||
45 | QString m_defaultApp; | 47 | QString m_defaultApp; | ||
46 | QString m_selectedApplication; | 48 | QString m_selectedApplication; | ||
47 | QGridLayout *m_gridLayout; | 49 | QGridLayout *m_gridLayout; | ||
48 | }; | 50 | }; | ||
49 | 51 | | |||
50 | #endif // XDG_DESKTOP_PORTAL_KDE_APPCHOOSER_DIALOG_H | 52 | #endif // XDG_DESKTOP_PORTAL_KDE_APPCHOOSER_DIALOG_H | ||
51 | 53 | | |||
52 | 54 | |