mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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:
parent
76d1377d04
commit
df1ff115f5
10 changed files with 130 additions and 9 deletions
|
|
@ -75,7 +75,7 @@ public:
|
|||
|
||||
TabType type() const{ return Skin; }
|
||||
|
||||
QGraphicsScene* scene()
|
||||
RBScene* scene()
|
||||
{
|
||||
return model->render(project, device, this, &fileName);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue