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
This commit is contained in:
Robert Bieber 2010-08-06 20:53:50 +00:00
parent 76d1377d04
commit df1ff115f5
10 changed files with 130 additions and 9 deletions

View file

@ -75,7 +75,7 @@ public:
TabType type() const{ return Skin; }
QGraphicsScene* scene()
RBScene* scene()
{
return model->render(project, device, this, &fileName);
}

View file

@ -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;
}

View file

@ -54,6 +54,26 @@
</property>
</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">