From 7be2cf603eb773672f8d4b0a411a4ee16ae0818f Mon Sep 17 00:00:00 2001 From: alwin Date: Fri, 16 Apr 2004 07:40:36 +0000 Subject: use setAutoScaleRotate of the imagedisplay --- (limited to 'noncore/graphics/opie-eye/gui') diff --git a/noncore/graphics/opie-eye/gui/mainwindow.cpp b/noncore/graphics/opie-eye/gui/mainwindow.cpp index 6f3f255..5ba4c8e 100644 --- a/noncore/graphics/opie-eye/gui/mainwindow.cpp +++ b/noncore/graphics/opie-eye/gui/mainwindow.cpp @@ -165,10 +165,13 @@ void PMainWindow::slotRotateToggled(bool how) void PMainWindow::slotScaleToggled(bool how) { autoScale = !how; + if (!how) { + autoRotate = how; + } if (m_disp) { - m_disp->setAutoScale(autoScale); + m_disp->setAutoScaleRotate(autoScale,autoRotate); } - if (!autoScale && autoRotate) { + if (!autoScale) { rotateButton->setOn(false); } rotateButton->setEnabled(!how); -- cgit v0.9.0.2