forked from qt-creator/qt-creator
MainWindow: Use FileUtils::get... functions
Changes the MainWindow to use FileUtils::getFilePaths function to access files on devices instead of QFileDialog. Change-Id: I0981c960b643edd69510cfed1cce16346962d75a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <utils/filepath.h>
|
||||
#include <utils/id.h>
|
||||
|
||||
#include <QFileDialog>
|
||||
#include <QObject>
|
||||
#include <QPair>
|
||||
|
||||
@@ -64,7 +65,8 @@ public:
|
||||
|
||||
static Utils::FilePaths getOpenFileNames(const QString &filters,
|
||||
const Utils::FilePath &path = {},
|
||||
QString *selectedFilter = nullptr);
|
||||
QString *selectedFilter = nullptr,
|
||||
QFileDialog::Options options = {});
|
||||
static Utils::FilePath getSaveFileName(const QString &title,
|
||||
const Utils::FilePath &pathIn,
|
||||
const QString &filter = {},
|
||||
|
||||
Reference in New Issue
Block a user