summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/gui/mainwindow.cpp
Unidiff
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.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.cpp b/noncore/graphics/opie-eye/gui/mainwindow.cpp
index f63b5a1..e5921d8 100644
--- a/noncore/graphics/opie-eye/gui/mainwindow.cpp
+++ b/noncore/graphics/opie-eye/gui/mainwindow.cpp
@@ -5,15 +5,14 @@
5#include "mainwindow.h" 5#include "mainwindow.h"
6 6
7#include "iconview.h" 7#include "iconview.h"
8#include "filesystem.h" 8#include "filesystem.h"
9#include "imageinfoui.h" 9#include "imageinfoui.h"
10#include "imageview.h" 10#include "imageview.h"
11#if 0
12#include "viewmodebutton.h" 11#include "viewmodebutton.h"
13#endif 12
14#include <iface/ifaceinfo.h> 13#include <iface/ifaceinfo.h>
15#include <iface/dirview.h> 14#include <iface/dirview.h>
16 15
17#include <opie2/odebug.h> 16#include <opie2/odebug.h>
18#include <opie2/owidgetstack.h> 17#include <opie2/owidgetstack.h>
19#include <opie2/oapplicationfactory.h> 18#include <opie2/oapplicationfactory.h>
@@ -88,26 +87,26 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style)
88 87
89 btn = new QToolButton( bar ); 88 btn = new QToolButton( bar );
90 btn->setIconSet( Resource::loadIconSet( "trash" ) ); 89 btn->setIconSet( Resource::loadIconSet( "trash" ) );
91 connect( btn, SIGNAL(clicked() ), 90 connect( btn, SIGNAL(clicked() ),
92 m_view, SLOT(slotTrash() ) ); 91 m_view, SLOT(slotTrash() ) );
93 92
94#if 0 93
95 btn = new ViewModeButton( bar ); 94 btn = new ViewModeButton( bar );
96 connect( btn, SIGNAL(changeMode(int)), 95 connect( btn, SIGNAL(changeMode(int)),
97 m_view, SLOT(slotChangeMode(int))); 96 m_view, SLOT(slotChangeMode(int)));
98#endif 97
99 btn = new QToolButton( bar ); 98 btn = new QToolButton( bar );
100 btn->setIconSet( Resource::loadIconSet( "SettingsIcon" ) ); 99 btn->setIconSet( Resource::loadIconSet( "SettingsIcon" ) );
101 connect( btn, SIGNAL(clicked() ), 100 connect( btn, SIGNAL(clicked() ),
102 this, SLOT(slotConfig() ) ); 101 this, SLOT(slotConfig() ) );
103 102
104 rotateButton = new QToolButton(bar); 103 rotateButton = new QToolButton(bar);
105 rotateButton->setIconSet( Resource::loadIconSet( "rotate" ) ); 104 rotateButton->setIconSet( Resource::loadIconSet( "rotate" ) );
106 rotateButton->setToggleButton(true); 105 rotateButton->setToggleButton(true);
107 106
108 odebug << "Mode = " << m_stack->mode() << oendl; 107 odebug << "Mode = " << m_stack->mode() << oendl;
109 if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) { 108 if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) {
110 rotateButton->setOn(true); 109 rotateButton->setOn(true);
111 autoRotate = true; 110 autoRotate = true;
112 } else { 111 } else {
113 rotateButton->setOn(false); 112 rotateButton->setOn(false);