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/skinviewer.cpp | |
parent | 76d1377d0495f92ab10310018f05c11183ddc560 (diff) |
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/skinviewer.cpp')
-rw-r--r-- | utils/themeeditor/gui/skinviewer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/themeeditor/gui/skinviewer.cpp b/utils/themeeditor/gui/skinviewer.cpp index f1f3af9c8c..ab4d522f2a 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; } |