summaryrefslogtreecommitdiff
path: root/utils/themeeditor/gui
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-18 21:10:01 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-18 21:10:01 +0000
commitd8827b5ff10c66a065a210d8aaf1d88214ee1070 (patch)
tree26a23ff031105ee98cbba967a4554ebf8ac423a6 /utils/themeeditor/gui
parent62622277dc2a11117605e5e7ff3d2a5f0423d8da (diff)
downloadrockbox-d8827b5ff10c66a065a210d8aaf1d88214ee1070.tar.gz
rockbox-d8827b5ff10c66a065a210d8aaf1d88214ee1070.zip
Theme Editor: Working on rendering viewports, display will now show %V(...) viewports as red rectangles over backdrop or background color
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26940 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/gui')
-rw-r--r--utils/themeeditor/gui/skindocument.cpp2
-rw-r--r--utils/themeeditor/gui/skinviewer.cpp4
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
37SkinViewer::~SkinViewer() 39SkinViewer::~SkinViewer()
@@ -53,7 +55,7 @@ void SkinViewer::changeEvent(QEvent *e)
53 55
54void SkinViewer::setScene(QGraphicsScene *scene) 56void SkinViewer::setScene(QGraphicsScene *scene)
55{ 57{
56 ui->viewer->setScene(scene); 58 ui->viewer->setScene(scene);z
57} 59}
58 60
59void SkinViewer::zoomIn() 61void SkinViewer::zoomIn()