Diffstat (limited to 'noncore/graphics/opie-eye/gui/viewmodebutton.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/viewmodebutton.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/graphics/opie-eye/gui/viewmodebutton.cpp b/noncore/graphics/opie-eye/gui/viewmodebutton.cpp index 0e4a7cb..36e5dcf 100644 --- a/noncore/graphics/opie-eye/gui/viewmodebutton.cpp +++ b/noncore/graphics/opie-eye/gui/viewmodebutton.cpp @@ -1,23 +1,23 @@ #include "viewmodebutton.h" #include <opie2/odebug.h> #include <qtoolbar.h> #include <qpopupmenu.h> -ViewModeButton::ViewModeButton( QToolBar* bar ) +ViewModeButton::ViewModeButton( QToolBar* bar,int def ) : QToolButton( bar ) { - slotChange( 1 ); + slotChange( def ); QPopupMenu *pop= new QPopupMenu( this ); pop->setCheckable( true ); pop->insertItem( tr("Thumbnail and Imageinfo"), 1 ); pop->insertItem( tr("Thumbnail and Name" ), 2 ); pop->insertItem( tr("Name Only" ), 3 ); connect(pop, SIGNAL(activated(int)), this, SIGNAL(changeMode(int)) ); connect(pop, SIGNAL(activated(int)), this, SLOT(slotChange(int)) ); setPopup( pop ); |