author | zecke <zecke> | 2004-04-14 13:00:01 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-04-14 13:00:01 (UTC) |
commit | 842db6adb0116491d36d78607dfefa76a7e0eb5a (patch) (unidiff) | |
tree | ae50fa626e984bdc81a9235745d74fe04e67a9f1 /noncore/graphics/opie-eye/gui/viewmodebutton.cpp | |
parent | 4f78995cbb47f78e68eb40d9a86a6a0dcdc576eb (diff) | |
download | opie-842db6adb0116491d36d78607dfefa76a7e0eb5a.zip opie-842db6adb0116491d36d78607dfefa76a7e0eb5a.tar.gz opie-842db6adb0116491d36d78607dfefa76a7e0eb5a.tar.bz2 |
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
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 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/noncore/graphics/opie-eye/gui/viewmodebutton.cpp b/noncore/graphics/opie-eye/gui/viewmodebutton.cpp new file mode 100644 index 0000000..fdf4e77 --- a/dev/null +++ b/noncore/graphics/opie-eye/gui/viewmodebutton.cpp | |||
@@ -0,0 +1,24 @@ | |||
1 | #include "viewmodebutton.h" | ||
2 | |||
3 | #include <qtoolbar.h> | ||
4 | #include <qpopupmenu.h> | ||
5 | |||
6 | ViewModeButton::ViewModeButton( QToolBar* bar ) | ||
7 | : QToolButton( bar ) | ||
8 | { | ||
9 | setIconSet( Resource::loadIconSet( "toys" ) ); | ||
10 | QPopupMenu *pop= new QPopupMenu( this ); | ||
11 | pop->setCheckable( true ); | ||
12 | pop->insertItem( tr("Thumbnail and Imageinfo"), 0 ); | ||
13 | pop->insertItem( tr("Thumbnail and Name" ), 1 ); | ||
14 | pop->insertItem( tr("Name Only" ), 2 ); | ||
15 | connect(pop, SIGNAL(activated(int)), | ||
16 | this, SIGNAL(changeMode(int)) ); | ||
17 | |||
18 | |||
19 | setPopup( pop ); | ||
20 | } | ||
21 | |||
22 | ViewModeButton::~ViewModeButton() { | ||
23 | |||
24 | } | ||