summaryrefslogtreecommitdiff
path: root/utils/themeeditor/gui/skinviewer.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-25 06:56:15 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-25 06:56:15 +0000
commit33595878aa2217d73ecfa2324bea2b25c70bcfc2 (patch)
tree3555ccabd49e730a18e18dd66d94e3f598389c94 /utils/themeeditor/gui/skinviewer.cpp
parent0db8bc4664cd12ea406a905d7a4237992f393753 (diff)
downloadrockbox-33595878aa2217d73ecfa2324bea2b25c70bcfc2.zip
rockbox-33595878aa2217d73ecfa2324bea2b25c70bcfc2.tar.gz
rockbox-33595878aa2217d73ecfa2324bea2b25c70bcfc2.tar.bz2
rockbox-33595878aa2217d73ecfa2324bea2b25c70bcfc2.tar.xz
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
Diffstat (limited to 'utils/themeeditor/gui/skinviewer.cpp')
-rw-r--r--utils/themeeditor/gui/skinviewer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/themeeditor/gui/skinviewer.cpp b/utils/themeeditor/gui/skinviewer.cpp
index ade4c7f..95caf1e 100644
--- a/utils/themeeditor/gui/skinviewer.cpp
+++ b/utils/themeeditor/gui/skinviewer.cpp
@@ -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();
+}