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.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/themeeditor/editorwindow.cpp b/utils/themeeditor/editorwindow.cpp
index a2fc11afdf..cadc6313a9 100644
--- a/utils/themeeditor/editorwindow.cpp
+++ b/utils/themeeditor/editorwindow.cpp
@@ -106,6 +106,10 @@ void EditorWindow::newTab()
106{ 106{
107 SkinDocument* doc = new SkinDocument; 107 SkinDocument* doc = new SkinDocument;
108 ui->editorTabs->addTab(doc, doc->getTitle()); 108 ui->editorTabs->addTab(doc, doc->getTitle());
109
110 /* Connecting to title change events */
111 QObject::connect(doc, SIGNAL(titleChanged(QString)),
112 this, SLOT(tabTitleChanged(QString)));
109} 113}
110 114
111void EditorWindow::shiftTab(int index) 115void EditorWindow::shiftTab(int index)
@@ -128,6 +132,12 @@ void EditorWindow::closeTab(int index)
128 } 132 }
129} 133}
130 134
135void EditorWindow::tabTitleChanged(QString title)
136{
137 SkinDocument* sender = dynamic_cast<SkinDocument*>(QObject::sender());
138 ui->editorTabs->setTabText(ui->editorTabs->indexOf(sender), title);
139}
140
131void EditorWindow::showPanel() 141void EditorWindow::showPanel()
132{ 142{
133 if(sender() == ui->actionFile_Panel) 143 if(sender() == ui->actionFile_Panel)