From 842db6adb0116491d36d78607dfefa76a7e0eb5a Mon Sep 17 00:00:00 2001 From: zecke Date: Wed, 14 Apr 2004 13:00:01 +0000 Subject: Alwin thank you for beeing nice (#ifdef 0 #endif ) next time completely revert just to piss me off :) Anyway now add the first version of the view button --- (limited to 'noncore/graphics/opie-eye/gui/mainwindow.cpp') 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 @@ -8,9 +8,8 @@ #include "filesystem.h" #include "imageinfoui.h" #include "imageview.h" -#if 0 #include "viewmodebutton.h" -#endif + #include #include @@ -91,11 +90,11 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style) connect( btn, SIGNAL(clicked() ), m_view, SLOT(slotTrash() ) ); -#if 0 + btn = new ViewModeButton( bar ); connect( btn, SIGNAL(changeMode(int)), m_view, SLOT(slotChangeMode(int))); -#endif + btn = new QToolButton( bar ); btn->setIconSet( Resource::loadIconSet( "SettingsIcon" ) ); connect( btn, SIGNAL(clicked() ), @@ -104,7 +103,7 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style) rotateButton = new QToolButton(bar); rotateButton->setIconSet( Resource::loadIconSet( "rotate" ) ); rotateButton->setToggleButton(true); - + odebug << "Mode = " << m_stack->mode() << oendl; if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) { rotateButton->setOn(true); -- cgit v0.9.0.2