diff options
Diffstat (limited to 'utils/themeeditor/editorwindow.cpp')
-rw-r--r-- | utils/themeeditor/editorwindow.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/utils/themeeditor/editorwindow.cpp b/utils/themeeditor/editorwindow.cpp index c19178a51a..92d400cf78 100644 --- a/utils/themeeditor/editorwindow.cpp +++ b/utils/themeeditor/editorwindow.cpp | |||
@@ -60,6 +60,7 @@ void EditorWindow::setupUI() | |||
60 | /* Connecting the buttons */ | 60 | /* Connecting the buttons */ |
61 | QObject::connect(ui->fromTree, SIGNAL(pressed()), | 61 | QObject::connect(ui->fromTree, SIGNAL(pressed()), |
62 | this, SLOT(updateCode())); | 62 | this, SLOT(updateCode())); |
63 | |||
63 | } | 64 | } |
64 | 65 | ||
65 | void EditorWindow::setupMenus() | 66 | void EditorWindow::setupMenus() |
@@ -71,15 +72,17 @@ void EditorWindow::setupMenus() | |||
71 | this, SLOT(showPanel())); | 72 | this, SLOT(showPanel())); |
72 | QObject::connect(ui->actionPreview_Panel, SIGNAL(triggered()), | 73 | QObject::connect(ui->actionPreview_Panel, SIGNAL(triggered()), |
73 | this, SLOT(showPanel())); | 74 | this, SLOT(showPanel())); |
74 | } | ||
75 | 75 | ||
76 | void EditorWindow::codeChanged() | 76 | /* Connecting the document opening/closing actions */ |
77 | { | 77 | QObject::connect(ui->actionNew_Document, SIGNAL(triggered()), |
78 | ui->parseTree->expandAll(); | 78 | this, SLOT(newTab())); |
79 | } | 79 | } |
80 | 80 | ||
81 | void EditorWindow::updateCode() | 81 | |
82 | void EditorWindow::newTab() | ||
82 | { | 83 | { |
84 | SkinDocument* doc = new SkinDocument; | ||
85 | ui->editorTabs->addTab(doc, doc->getTitle()); | ||
83 | } | 86 | } |
84 | 87 | ||
85 | void EditorWindow::showPanel() | 88 | void EditorWindow::showPanel() |