34 #include <QAbstractButton>
38 struct PathChooserPrivate;
49 Q_PROPERTY(QString path READ path WRITE setPath DESIGNABLE
true)
50 Q_PROPERTY(QString promptDialogTitle READ promptDialogTitle WRITE setPromptDialogTitle DESIGNABLE
true)
51 Q_PROPERTY(Kind expectedKind READ expectedKind WRITE setExpectedKind DESIGNABLE
true)
54 static const char *
const browseButtonLabel;
67 void setExpectedKind(Kind expected);
68 Kind expectedKind()
const;
70 void setPromptDialogTitle(
const QString &title);
71 QString promptDialogTitle()
const;
73 void setPromptDialogFilter(
const QString &filter);
74 QString promptDialogFilter()
const;
76 void setInitialBrowsePathBackup(
const QString &path);
79 QString errorMessage()
const;
84 static QString label();
86 virtual bool validatePath(
const QString &path, QString *errorMessage =
nullptr);
89 static QString homePath();
91 void addButton(
const QString &text, QObject *receiver,
const char *slotFunc);
92 QAbstractButton *buttonAtIndex(
int index)
const;
96 QString makeDialogTitle(
const QString &title);
100 void validChanged(
bool validState);
101 void changed(
const QString &text);
102 void editingFinished();
103 void beforeBrowsing();
104 void browsingFinished();
105 void returnPressed();
108 void setPath(
const QString &);
120 #endif // PATHCHOOSER_H