Diffstat (limited to 'noncore/graphics/opie-eye/gui') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/mainwindow.cpp | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.cpp b/noncore/graphics/opie-eye/gui/mainwindow.cpp index dd9cced..f63b5a1 100644 --- a/noncore/graphics/opie-eye/gui/mainwindow.cpp +++ b/noncore/graphics/opie-eye/gui/mainwindow.cpp | |||
@@ -10,4 +10,5 @@ | |||
10 | #include "imageview.h" | 10 | #include "imageview.h" |
11 | #if 0 | ||
11 | #include "viewmodebutton.h" | 12 | #include "viewmodebutton.h" |
12 | 13 | #endif | |
13 | #include <iface/ifaceinfo.h> | 14 | #include <iface/ifaceinfo.h> |
@@ -64,2 +65,4 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style) | |||
64 | 65 | ||
66 | m_stack->forceMode(Opie::Ui::OWidgetStack::NoForce); | ||
67 | |||
65 | QToolButton *btn = new QToolButton( bar ); | 68 | QToolButton *btn = new QToolButton( bar ); |
@@ -90,2 +93,3 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style) | |||
90 | 93 | ||
94 | #if 0 | ||
91 | btn = new ViewModeButton( bar ); | 95 | btn = new ViewModeButton( bar ); |
@@ -93,3 +97,3 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style) | |||
93 | m_view, SLOT(slotChangeMode(int))); | 97 | m_view, SLOT(slotChangeMode(int))); |
94 | 98 | #endif | |
95 | btn = new QToolButton( bar ); | 99 | btn = new QToolButton( bar ); |
@@ -102,5 +106,13 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style) | |||
102 | rotateButton->setToggleButton(true); | 106 | rotateButton->setToggleButton(true); |
103 | rotateButton->setOn(true); | 107 | |
108 | odebug << "Mode = " << m_stack->mode() << oendl; | ||
109 | if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) { | ||
110 | rotateButton->setOn(true); | ||
111 | autoRotate = true; | ||
112 | } else { | ||
113 | rotateButton->setOn(false); | ||
114 | autoRotate = false; | ||
115 | } | ||
116 | |||
104 | connect(rotateButton,SIGNAL(toggled(bool)),this,SLOT(slotRotateToggled(bool))); | 117 | connect(rotateButton,SIGNAL(toggled(bool)),this,SLOT(slotRotateToggled(bool))); |
105 | autoRotate = true; | ||
106 | 118 | ||
@@ -250,2 +262,5 @@ void PMainWindow::initDisp() { | |||
250 | if (m_disp) { | 262 | if (m_disp) { |
263 | if (m_stack->mode() != Opie::Ui::OWidgetStack::SmallScreen) { | ||
264 | m_disp->setMinimumSize(QApplication::desktop()->size()/2); | ||
265 | } | ||
251 | m_disp->setAutoScale(autoScale); | 266 | m_disp->setAutoScale(autoScale); |