summaryrefslogtreecommitdiff
authoralwin <alwin>2004-04-16 07:40:36 (UTC)
committer alwin <alwin>2004-04-16 07:40:36 (UTC)
commit7be2cf603eb773672f8d4b0a411a4ee16ae0818f (patch) (side-by-side diff)
tree22c9af3b5de541da6c1662adb0366934f6493a3b
parent9692c199f1f8b4c334687081e0d75bfbf9375ad8 (diff)
downloadopie-7be2cf603eb773672f8d4b0a411a4ee16ae0818f.zip
opie-7be2cf603eb773672f8d4b0a411a4ee16ae0818f.tar.gz
opie-7be2cf603eb773672f8d4b0a411a4ee16ae0818f.tar.bz2
use setAutoScaleRotate of the imagedisplay
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/gui/mainwindow.cpp7
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
@@ -144,52 +144,55 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style)
PMainWindow::~PMainWindow() {
odebug << "Shutting down" << oendl;
}
void PMainWindow::slotZoomerToggled(bool how)
{
zoomerOn = how;
if (m_disp) {
m_disp->setShowZoomer(zoomerOn);
}
}
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);
dlg.setCaption( tr("Phunk View - Config" ) );
QHBoxLayout *lay = new QHBoxLayout(&dlg);
Opie::Ui::OTabWidget *wid = new Opie::Ui::OTabWidget(&dlg );
lay->addWidget( wid );
ViewMap *vM = viewMap();
ViewMap::Iterator _it = vM->begin();
QMap<PDirView*, QWidget*> lst;
for( ; _it != vM->end(); ++_it ) {
PDirView *view = (_it.data())(*m_cfg);
PInterfaceInfo *inf = view->interfaceInfo();