-rw-r--r-- | noncore/graphics/opie-eye/gui/mainwindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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 @@ -156,28 +156,31 @@ void PMainWindow::slotZoomerToggled(bool how) void PMainWindow::slotRotateToggled(bool how) { autoRotate = how; if (m_disp) { m_disp->setAutoRotate(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); } void PMainWindow::slotConfig() { /* * have a tab with the possible views * a tab for globals image cache size.. scaled loading * and one tab for the KeyConfigs */ QDialog dlg(this, 0, true); |