diff options
Diffstat (limited to 'utils/themeeditor/gui/editorwindow.cpp')
-rw-r--r-- | utils/themeeditor/gui/editorwindow.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/utils/themeeditor/gui/editorwindow.cpp b/utils/themeeditor/gui/editorwindow.cpp index 48ee76d11c..64443a1fd1 100644 --- a/utils/themeeditor/gui/editorwindow.cpp +++ b/utils/themeeditor/gui/editorwindow.cpp | |||
@@ -428,7 +428,7 @@ void EditorWindow::shiftTab(int index) | |||
428 | ui->actionCopy->setEnabled(false); | 428 | ui->actionCopy->setEnabled(false); |
429 | ui->actionPaste->setEnabled(false); | 429 | ui->actionPaste->setEnabled(false); |
430 | ui->actionFind_Replace->setEnabled(false); | 430 | ui->actionFind_Replace->setEnabled(false); |
431 | viewer->setScene(0); | 431 | viewer->connectSkin(0); |
432 | } | 432 | } |
433 | else if(widget->type() == TabContent::Config) | 433 | else if(widget->type() == TabContent::Config) |
434 | { | 434 | { |
@@ -441,7 +441,7 @@ void EditorWindow::shiftTab(int index) | |||
441 | ui->actionCopy->setEnabled(false); | 441 | ui->actionCopy->setEnabled(false); |
442 | ui->actionPaste->setEnabled(false); | 442 | ui->actionPaste->setEnabled(false); |
443 | ui->actionFind_Replace->setEnabled(false); | 443 | ui->actionFind_Replace->setEnabled(false); |
444 | viewer->setScene(0); | 444 | viewer->connectSkin(0); |
445 | } | 445 | } |
446 | else if(widget->type() == TabContent::Skin) | 446 | else if(widget->type() == TabContent::Skin) |
447 | { | 447 | { |
@@ -465,7 +465,8 @@ void EditorWindow::shiftTab(int index) | |||
465 | sizeColumns(); | 465 | sizeColumns(); |
466 | 466 | ||
467 | /* Syncing the preview */ | 467 | /* Syncing the preview */ |
468 | viewer->setScene(doc->scene()); | 468 | viewer->connectSkin(doc); |
469 | |||
469 | 470 | ||
470 | } | 471 | } |
471 | 472 | ||
@@ -513,7 +514,7 @@ void EditorWindow::closeProject() | |||
513 | dynamic_cast<SkinDocument*>(doc)->setProject(project); | 514 | dynamic_cast<SkinDocument*>(doc)->setProject(project); |
514 | if(i == ui->editorTabs->currentIndex()) | 515 | if(i == ui->editorTabs->currentIndex()) |
515 | { | 516 | { |
516 | viewer->setScene(dynamic_cast<SkinDocument*>(doc)->scene()); | 517 | viewer->connectSkin(dynamic_cast<SkinDocument*>(doc)); |
517 | } | 518 | } |
518 | } | 519 | } |
519 | } | 520 | } |
@@ -630,7 +631,7 @@ void EditorWindow::configFileChanged(QString configFile) | |||
630 | dynamic_cast<SkinDocument*>(doc)->setProject(project); | 631 | dynamic_cast<SkinDocument*>(doc)->setProject(project); |
631 | if(i == ui->editorTabs->currentIndex()) | 632 | if(i == ui->editorTabs->currentIndex()) |
632 | { | 633 | { |
633 | viewer->setScene(dynamic_cast<SkinDocument*>(doc)->scene()); | 634 | viewer->connectSkin(dynamic_cast<SkinDocument*>(doc)); |
634 | } | 635 | } |
635 | } | 636 | } |
636 | } | 637 | } |
@@ -858,7 +859,7 @@ void EditorWindow::loadProjectFile(QString fileName) | |||
858 | dynamic_cast<SkinDocument*>(doc)->setProject(project); | 859 | dynamic_cast<SkinDocument*>(doc)->setProject(project); |
859 | if(i == ui->editorTabs->currentIndex()) | 860 | if(i == ui->editorTabs->currentIndex()) |
860 | { | 861 | { |
861 | viewer->setScene(dynamic_cast<SkinDocument*>(doc)->scene()); | 862 | viewer->connectSkin(dynamic_cast<SkinDocument*>(doc)); |
862 | } | 863 | } |
863 | } | 864 | } |
864 | } | 865 | } |