summaryrefslogtreecommitdiff
path: root/utils/themeeditor/editorwindow.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-05 08:22:30 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-05 08:22:30 +0000
commit4051b34039e079c0969904887fdcabd68bcad681 (patch)
tree3f3ff866ec2d284aafb7b9c5a51006438cc8cb6d /utils/themeeditor/editorwindow.cpp
parentd41a6810533f5508a18ce7e02cb34b8c37e371cc (diff)
downloadrockbox-4051b34039e079c0969904887fdcabd68bcad681.tar.gz
rockbox-4051b34039e079c0969904887fdcabd68bcad681.zip
Theme Editor: Got document title change signal working, beginning work on save function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26567 a1c6a512-1295-4272-9138-f99709370657
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)