summaryrefslogtreecommitdiff
path: root/examples/opieui/owidgetstack_example/owidgetstack_example.cpp
Unidiff
Diffstat (limited to 'examples/opieui/owidgetstack_example/owidgetstack_example.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--examples/opieui/owidgetstack_example/owidgetstack_example.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/opieui/owidgetstack_example/owidgetstack_example.cpp b/examples/opieui/owidgetstack_example/owidgetstack_example.cpp
index 272e42b..ded3b0c 100644
--- a/examples/opieui/owidgetstack_example/owidgetstack_example.cpp
+++ b/examples/opieui/owidgetstack_example/owidgetstack_example.cpp
@@ -7,7 +7,7 @@
7/* OPIE */ 7/* OPIE */
8#include <opie2/oapplicationfactory.h> 8#include <opie2/oapplicationfactory.h>
9#include <opie2/owidgetstack.h> 9#include <opie2/owidgetstack.h>
10#include <qpe/resource.h> 10#include <opie2/oresource.h>
11 11
12/* QT */ 12/* QT */
13#include <qaction.h> 13#include <qaction.h>
@@ -44,28 +44,28 @@ StackExample::StackExample( QWidget* parent, const char* name, WFlags fl )
44 QMenuBar *bar = new QMenuBar( holder ); 44 QMenuBar *bar = new QMenuBar( holder );
45 QPopupMenu *menu = new QPopupMenu( this ); 45 QPopupMenu *menu = new QPopupMenu( this );
46 46
47 QAction* a = new QAction( tr("Show MainWidget"), Resource::loadPixmap("zoom"), 47 QAction* a = new QAction( tr("Show MainWidget"), Opie::Core::OResource::loadPixmap("zoom", Opie::Core::OResource::SmallIcon),
48 QString::null, 0, this, 0 ); 48 QString::null, 0, this, 0 );
49 sm->setMapping(a, 1 ); 49 sm->setMapping(a, 1 );
50 connect(a, SIGNAL(activated() ), 50 connect(a, SIGNAL(activated() ),
51 sm, SLOT(map() ) ); 51 sm, SLOT(map() ) );
52 a->addTo( menu ); 52 a->addTo( menu );
53 53
54 a = new QAction( tr("Show Details Small"), Resource::loadPixmap("zoom"), 54 a = new QAction( tr("Show Details Small"), Opie::Core::OResource::loadPixmap("zoom", Opie::Core::OResource::SmallIcon),
55 QString::null, 0, this, 0 ); 55 QString::null, 0, this, 0 );
56 sm->setMapping(a, 2 ); 56 sm->setMapping(a, 2 );
57 connect(a, SIGNAL(activated() ), 57 connect(a, SIGNAL(activated() ),
58 sm, SLOT(map() ) ); 58 sm, SLOT(map() ) );
59 a->addTo( menu ); 59 a->addTo( menu );
60 60
61 a = new QAction( tr("Show Details More"), Resource::loadPixmap("zoom"), 61 a = new QAction( tr("Show Details More"), Opie::Core::OResource::loadPixmap("zoom", Opie::Core::OResource::SmallIcon),
62 QString::null, 0, this, 0 ); 62 QString::null, 0, this, 0 );
63 sm->setMapping(a, 3 ); 63 sm->setMapping(a, 3 );
64 connect(a, SIGNAL(activated() ), 64 connect(a, SIGNAL(activated() ),
65 sm, SLOT(map() ) ); 65 sm, SLOT(map() ) );
66 a->addTo( menu ); 66 a->addTo( menu );
67 67
68 a = new QAction( tr("Show Details All"), Resource::loadPixmap("zoom"), 68 a = new QAction( tr("Show Details All"), Opie::Core::OResource::loadPixmap("zoom", Opie::Core::OResource::SmallIcon),
69 QString::null, 0, this, 0 ); 69 QString::null, 0, this, 0 );
70 sm->setMapping(a, 4 ); 70 sm->setMapping(a, 4 );
71 connect(a, SIGNAL(activated() ), 71 connect(a, SIGNAL(activated() ),
@@ -98,7 +98,7 @@ StackExample::StackExample( QWidget* parent, const char* name, WFlags fl )
98 m_main = wid; 98 m_main = wid;
99 99
100 QLabel *lbl = new QLabel(m_stack ); 100 QLabel *lbl = new QLabel(m_stack );
101 lbl->setText(tr("Only small Details are shown here. Määh") ); 101 lbl->setText(tr("Only small Details are shown here. M�h") );
102 m_stack->addWidget( lbl, 2 ); 102 m_stack->addWidget( lbl, 2 );
103 103
104 lbl = new QLabel( m_stack ); 104 lbl = new QLabel( m_stack );
@@ -106,7 +106,7 @@ StackExample::StackExample( QWidget* parent, const char* name, WFlags fl )
106 m_stack->addWidget( lbl, 3 ); 106 m_stack->addWidget( lbl, 3 );
107 107
108 lbl = new QLabel( m_stack ); 108 lbl = new QLabel( m_stack );
109 lbl->setText( tr("<qt>Ne nicht in Bayerisch Gmain sondern in Berlin<br>Vermiss und meine Augen werden nicht eckig, da mein Bildschirm abgerundet ist<br>Es lebe Hamburg Süd,weiss du, verstehst du? ;)<br>Susi ist dOOf, es lebe die Ofenecke...", "hard to translate that") ); 109 lbl->setText( tr("<qt>Ne nicht in Bayerisch Gmain sondern in Berlin<br>Vermiss und meine Augen werden nicht eckig, da mein Bildschirm abgerundet ist<br>Es lebe Hamburg Sd,weiss du, verstehst du? ;)<br>Susi ist dOOf, es lebe die Ofenecke...", "hard to translate that") );
110 m_stack->addWidget( lbl, 4 ); 110 m_stack->addWidget( lbl, 4 );
111 111
112 112