summaryrefslogtreecommitdiff
path: root/utils/themeeditor/gui/skinviewer.cpp
diff options
context:
space:
mode:
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();
+}