Diffstat (limited to 'noncore/graphics/opie-eye/gui/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-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) | |||
156 | 156 | ||
157 | void PMainWindow::slotRotateToggled(bool how) | 157 | void PMainWindow::slotRotateToggled(bool how) |
158 | { | 158 | { |
159 | autoRotate = how; | 159 | autoRotate = how; |
160 | if (m_disp) { | 160 | if (m_disp) { |
161 | m_disp->setAutoRotate(how); | 161 | m_disp->setAutoRotate(how); |
162 | } | 162 | } |
163 | } | 163 | } |
164 | 164 | ||
165 | void PMainWindow::slotScaleToggled(bool how) | 165 | void PMainWindow::slotScaleToggled(bool how) |
166 | { | 166 | { |
167 | autoScale = !how; | 167 | autoScale = !how; |
168 | if (!how) { | ||
169 | autoRotate = how; | ||
170 | } | ||
168 | if (m_disp) { | 171 | if (m_disp) { |
169 | m_disp->setAutoScale(autoScale); | 172 | m_disp->setAutoScaleRotate(autoScale,autoRotate); |
170 | } | 173 | } |
171 | if (!autoScale && autoRotate) { | 174 | if (!autoScale) { |
172 | rotateButton->setOn(false); | 175 | rotateButton->setOn(false); |
173 | } | 176 | } |
174 | rotateButton->setEnabled(!how); | 177 | rotateButton->setEnabled(!how); |
175 | } | 178 | } |
176 | 179 | ||
177 | void PMainWindow::slotConfig() { | 180 | void PMainWindow::slotConfig() { |
178 | /* | 181 | /* |
179 | * have a tab with the possible views | 182 | * have a tab with the possible views |
180 | * a tab for globals image cache size.. scaled loading | 183 | * a tab for globals image cache size.. scaled loading |
181 | * and one tab for the KeyConfigs | 184 | * and one tab for the KeyConfigs |
182 | */ | 185 | */ |
183 | QDialog dlg(this, 0, true); | 186 | QDialog dlg(this, 0, true); |