1#ifndef WIDGETS_PATHSELECTION_H
2#define WIDGETS_PATHSELECTION_H
8QT_FORWARD_DECLARE_CLASS(QPushButton)
9QT_FORWARD_DECLARE_CLASS(QCompleter)
23 void provideCustomFileMode(QFileDialog::FileMode customFileMode);
24 void provideCustomFileDialog(QFileDialog *customFileDialog);
27 bool event(QEvent *event)
override;
28 bool eventFilter(QObject *obj, QEvent *event)
override;
31 void showFileDialog();
36 QPushButton *m_button;
37 QFileDialog *m_customDialog;
38 QFileDialog::FileMode m_customMode;
39 static QCompleter *s_completer;
65 m_customMode = customFileMode;
76 m_customDialog = customFileDialog;
A QLineEdit with an embedded button for clearing its contents.
A QLineEdit with a QPushButton next to it which allows to select file/directory via QFileDialog.
void provideCustomFileMode(QFileDialog::FileMode customFileMode)
Can be used to provide a custom file mode.
void provideCustomFileDialog(QFileDialog *customFileDialog)
Can be used to provide a custom file dialog.
ClearLineEdit * lineEdit()
Returns the line edit with the selected path.
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.