summaryrefslogtreecommitdiff
path: root/utils/themeeditor/editorwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/editorwindow.cpp')
-rw-r--r--utils/themeeditor/editorwindow.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/themeeditor/editorwindow.cpp b/utils/themeeditor/editorwindow.cpp
index bc66fec425..dfc4b5981e 100644
--- a/utils/themeeditor/editorwindow.cpp
+++ b/utils/themeeditor/editorwindow.cpp
@@ -25,6 +25,7 @@
25#include <QDesktopWidget> 25#include <QDesktopWidget>
26#include <QFileSystemModel> 26#include <QFileSystemModel>
27#include <QSettings> 27#include <QSettings>
28#include <QFileDialog>
28 29
29EditorWindow::EditorWindow(QWidget *parent) : 30EditorWindow::EditorWindow(QWidget *parent) :
30 QMainWindow(parent), 31 QMainWindow(parent),
@@ -183,6 +184,17 @@ void EditorWindow::saveCurrentAs()
183 dynamic_cast<SkinDocument*>(ui->editorTabs->currentWidget())->saveAs(); 184 dynamic_cast<SkinDocument*>(ui->editorTabs->currentWidget())->saveAs();
184} 185}
185 186
187void EditorWindow::openFile()
188{
189 QStringList fileNames;
190 QSettings settings;
191
192 settings.beginGroup("SkinDocument");
193 QString directory = settings.value("defaultDirectory", "").toString();
194 fileNames = QFileDialog::getOpenFileNames(this, tr("Open Files"), directory,
195 SkinDocument::fileFilter());
196}
197
186 198
187void EditorWindow::tabTitleChanged(QString title) 199void EditorWindow::tabTitleChanged(QString title)
188{ 200{