forked from len0rd/rockbox
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
This commit is contained in:
parent
d41a681053
commit
4051b34039
4 changed files with 53 additions and 0 deletions
|
@ -106,6 +106,10 @@ void EditorWindow::newTab()
|
|||
{
|
||||
SkinDocument* doc = new SkinDocument;
|
||||
ui->editorTabs->addTab(doc, doc->getTitle());
|
||||
|
||||
/* Connecting to title change events */
|
||||
QObject::connect(doc, SIGNAL(titleChanged(QString)),
|
||||
this, SLOT(tabTitleChanged(QString)));
|
||||
}
|
||||
|
||||
void EditorWindow::shiftTab(int index)
|
||||
|
@ -128,6 +132,12 @@ void EditorWindow::closeTab(int index)
|
|||
}
|
||||
}
|
||||
|
||||
void EditorWindow::tabTitleChanged(QString title)
|
||||
{
|
||||
SkinDocument* sender = dynamic_cast<SkinDocument*>(QObject::sender());
|
||||
ui->editorTabs->setTabText(ui->editorTabs->indexOf(sender), title);
|
||||
}
|
||||
|
||||
void EditorWindow::showPanel()
|
||||
{
|
||||
if(sender() == ui->actionFile_Panel)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue