-
Notifications
You must be signed in to change notification settings - Fork 0
/
filedialoghelper.h
37 lines (29 loc) · 944 Bytes
/
filedialoghelper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef FILEDIALOGHELPER_H
#define FILEDIALOGHELPER_H
#include <qpa/qplatformdialoghelper.h>
#include <QObject>
#include <QWindow>
#include "filedialog.h"
class FileDialogHelper : public QPlatformFileDialogHelper
{
Q_OBJECT
public:
explicit FileDialogHelper();
void exec() override;
bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override;
void hide() override;
bool defaultNameFilterDisables() const override;
void setDirectory(const QUrl &directory) override;
QUrl directory() const override;
void selectFile(const QUrl &filename) override;
QList<QUrl> selectedFiles() const override;
void setFilter() override;
void selectNameFilter(const QString &filter) override;
QString selectedNameFilter() const override;
signals:
public slots:
private:
void updateWindowOptions();
FileDialog* dialogWindow;
};
#endif // FILEDIALOGHELPER_H