forked from len0rd/rockbox
Theme Editor: Added a reset zoom button, made icons for all the zoom buttons
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27129 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0db8bc4664
commit
33595878aa
9 changed files with 53 additions and 3 deletions
|
|
@ -32,6 +32,8 @@ SkinViewer::SkinViewer(QWidget *parent) :
|
|||
this, SLOT(zoomOut()));
|
||||
QObject::connect(ui->zoomInButton, SIGNAL(pressed()),
|
||||
this, SLOT(zoomIn()));
|
||||
QObject::connect(ui->zoomEvenButton, SIGNAL(pressed()),
|
||||
this, SLOT(zoomEven()));
|
||||
|
||||
ui->viewer->setDragMode(QGraphicsView::ScrollHandDrag);
|
||||
}
|
||||
|
|
@ -67,3 +69,8 @@ void SkinViewer::zoomOut()
|
|||
{
|
||||
ui->viewer->scale(1/1.2, 1/1.2);
|
||||
}
|
||||
|
||||
void SkinViewer::zoomEven()
|
||||
{
|
||||
ui->viewer->resetTransform();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue