diff options
Diffstat (limited to 'utils/themeeditor/gui')
-rw-r--r-- | utils/themeeditor/gui/skindocument.cpp | 2 | ||||
-rw-r--r-- | utils/themeeditor/gui/skinviewer.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/utils/themeeditor/gui/skindocument.cpp b/utils/themeeditor/gui/skindocument.cpp index aeefcc38f4..6d28de38a8 100644 --- a/utils/themeeditor/gui/skindocument.cpp +++ b/utils/themeeditor/gui/skindocument.cpp | |||
@@ -257,6 +257,8 @@ void SkinDocument::codeChanged() | |||
257 | else | 257 | else |
258 | emit titleChanged(titleText); | 258 | emit titleChanged(titleText); |
259 | 259 | ||
260 | model->render(project); | ||
261 | |||
260 | cursorChanged(); | 262 | cursorChanged(); |
261 | 263 | ||
262 | } | 264 | } |
diff --git a/utils/themeeditor/gui/skinviewer.cpp b/utils/themeeditor/gui/skinviewer.cpp index 152450e149..cabe788d47 100644 --- a/utils/themeeditor/gui/skinviewer.cpp +++ b/utils/themeeditor/gui/skinviewer.cpp | |||
@@ -32,6 +32,8 @@ SkinViewer::SkinViewer(QWidget *parent) : | |||
32 | this, SLOT(zoomOut())); | 32 | this, SLOT(zoomOut())); |
33 | QObject::connect(ui->zoomInButton, SIGNAL(pressed()), | 33 | QObject::connect(ui->zoomInButton, SIGNAL(pressed()), |
34 | this, SLOT(zoomIn())); | 34 | this, SLOT(zoomIn())); |
35 | |||
36 | ui->viewer->setDragMode(QGraphicsView::ScrollHandDrag); | ||
35 | } | 37 | } |
36 | 38 | ||
37 | SkinViewer::~SkinViewer() | 39 | SkinViewer::~SkinViewer() |
@@ -53,7 +55,7 @@ void SkinViewer::changeEvent(QEvent *e) | |||
53 | 55 | ||
54 | void SkinViewer::setScene(QGraphicsScene *scene) | 56 | void SkinViewer::setScene(QGraphicsScene *scene) |
55 | { | 57 | { |
56 | ui->viewer->setScene(scene); | 58 | ui->viewer->setScene(scene);z |
57 | } | 59 | } |
58 | 60 | ||
59 | void SkinViewer::zoomIn() | 61 | void SkinViewer::zoomIn() |