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 c19178a..92d400c 100644 --- a/utils/themeeditor/editorwindow.cpp +++ b/utils/themeeditor/editorwindow.cpp @@ -60,6 +60,7 @@ void EditorWindow::setupUI() /* Connecting the buttons */ QObject::connect(ui->fromTree, SIGNAL(pressed()), this, SLOT(updateCode())); + } void EditorWindow::setupMenus() @@ -71,15 +72,17 @@ void EditorWindow::setupMenus() this, SLOT(showPanel())); QObject::connect(ui->actionPreview_Panel, SIGNAL(triggered()), this, SLOT(showPanel())); -} -void EditorWindow::codeChanged() -{ - ui->parseTree->expandAll(); + /* Connecting the document opening/closing actions */ + QObject::connect(ui->actionNew_Document, SIGNAL(triggered()), + this, SLOT(newTab())); } -void EditorWindow::updateCode() + +void EditorWindow::newTab() { + SkinDocument* doc = new SkinDocument; + ui->editorTabs->addTab(doc, doc->getTitle()); } void EditorWindow::showPanel() |