-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathfiledialog.h
More file actions
29 lines (26 loc) · 1.2 KB
/
Copy pathfiledialog.h
File metadata and controls
29 lines (26 loc) · 1.2 KB
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
#ifndef FILEDIALOG_H
#define FILEDIALOG_H
#include <QObject>
#include <QFileDialog>
class FileDialog : public QObject
{
Q_OBJECT
public:
explicit FileDialog(QObject *parent = nullptr);
static QString getOpenFileName(QWidget *parent = nullptr,
const QString &caption = QString(),
const QString &dir = QString(),
const QString &filter = QString(),
QString *selectedFilter = nullptr);
static QString getSaveFileName(QWidget *parent = nullptr,
const QString &caption = QString(),
const QString &dir = QString(),
const QString &filter = QString(),
QString *selectedFilter = nullptr);
static QString getExistingDirectory(QWidget *parent = nullptr,
const QString &caption = QString(),
const QString &dir = QString(),
QFileDialog::Options options = QFileDialog::ShowDirsOnly);
signals:
};
#endif // FILEDIALOG_H