diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-08-06 20:53:50 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-08-06 20:53:50 +0000 |
| commit | df1ff115f50f77473efeec33bea670388e7e3325 (patch) | |
| tree | aeecd16c878d72377b3ce8cb81601869c270552e /utils/themeeditor/gui | |
| parent | 76d1377d0495f92ab10310018f05c11183ddc560 (diff) | |
| download | rockbox-df1ff115f50f77473efeec33bea670388e7e3325.zip rockbox-df1ff115f50f77473efeec33bea670388e7e3325.tar.gz rockbox-df1ff115f50f77473efeec33bea670388e7e3325.tar.bz2 rockbox-df1ff115f50f77473efeec33bea670388e7e3325.tar.xz | |
Theme Editor: Added coordinate display when moving mouse around preview window
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27738 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/gui')
| -rw-r--r-- | utils/themeeditor/gui/skindocument.h | 2 | ||||
| -rw-r--r-- | utils/themeeditor/gui/skinviewer.cpp | 4 | ||||
| -rw-r--r-- | utils/themeeditor/gui/skinviewer.ui | 20 |
3 files changed, 25 insertions, 1 deletions
diff --git a/utils/themeeditor/gui/skindocument.h b/utils/themeeditor/gui/skindocument.h index 5e72e29..bf47897 100644 --- a/utils/themeeditor/gui/skindocument.h +++ b/utils/themeeditor/gui/skindocument.h @@ -75,7 +75,7 @@ public: TabType type() const{ return Skin; } - QGraphicsScene* scene() + RBScene* scene() { return model->render(project, device, this, &fileName); } diff --git a/utils/themeeditor/gui/skinviewer.cpp b/utils/themeeditor/gui/skinviewer.cpp index f1f3af9..ab4d522 100644 --- a/utils/themeeditor/gui/skinviewer.cpp +++ b/utils/themeeditor/gui/skinviewer.cpp @@ -69,11 +69,15 @@ void SkinViewer::connectSkin(SkinDocument *skin) QObject::connect(ui->codeUndoButton, SIGNAL(pressed()), skin, SLOT(parseCode())); + QObject::connect(skin->scene(), SIGNAL(mouseMoved(QString)), + ui->coordinateLabel, SLOT(setText(QString))); + doc = skin; } else { ui->viewer->setScene(0); + ui->coordinateLabel->setText(""); doc = 0; } diff --git a/utils/themeeditor/gui/skinviewer.ui b/utils/themeeditor/gui/skinviewer.ui index dc4a786..aa10cdd 100644 --- a/utils/themeeditor/gui/skinviewer.ui +++ b/utils/themeeditor/gui/skinviewer.ui @@ -55,6 +55,26 @@ </widget> </item> <item> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="coordinateLabel"> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> |