Diffstat (limited to 'examples/todayplugin/examplepluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | examples/todayplugin/examplepluginwidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/todayplugin/examplepluginwidget.cpp b/examples/todayplugin/examplepluginwidget.cpp index d66a11a..10fd39a 100644 --- a/examples/todayplugin/examplepluginwidget.cpp +++ b/examples/todayplugin/examplepluginwidget.cpp | |||
@@ -1,50 +1,51 @@ | |||
1 | /* | 1 | /* |
2 | * examplepluginwidget.cpp | 2 | * examplepluginwidget.cpp |
3 | * | 3 | * |
4 | * email : harlekin@handhelds.org | 4 | * email : harlekin@handhelds.org |
5 | * | 5 | * |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include <qpe/config.h> | 8 | #include <qpe/config.h> |
9 | #include <qpe/qcopenvelope_qws.h> | 9 | #include <qpe/qcopenvelope_qws.h> |
10 | 10 | ||
11 | #include "examplepluginwidget.h" | 11 | #include "examplepluginwidget.h" |
12 | 12 | ||
13 | |||
13 | ExamplePluginWidget::ExamplePluginWidget( QWidget *parent, const char* name) | 14 | ExamplePluginWidget::ExamplePluginWidget( QWidget *parent, const char* name) |
14 | : QWidget(parent, name ) { | 15 | : QWidget(parent, name ) { |
15 | 16 | ||
16 | m_exampleLabel = 0l; | 17 | m_exampleLabel = 0l; |
17 | m_layout = 0l; | 18 | m_layout = 0l; |
18 | 19 | ||
19 | if ( m_exampleLabel ) { | 20 | if ( m_exampleLabel ) { |
20 | delete m_exampleLabel; | 21 | delete m_exampleLabel; |
21 | } | 22 | } |
22 | 23 | ||
23 | // since here a OClickableLabel is used, the plugin part will be clickable, and the actions | 24 | // since here a OClickableLabel is used, the plugin part will be clickable, and the actions |
24 | // that should be triggered when clicked are defined in slotClicked() | 25 | // that should be triggered when clicked are defined in slotClicked() |
25 | // of course also normal widgets can be used. | 26 | // of course also normal widgets can be used. |
26 | m_exampleLabel = new OClickableLabel( this ); | 27 | m_exampleLabel = new Opie::Ui::OClickableLabel( this ); |
27 | connect( m_exampleLabel, SIGNAL( clicked() ), this, SLOT( slotClicked() ) ); | 28 | connect( m_exampleLabel, SIGNAL( clicked() ), this, SLOT( slotClicked() ) ); |
28 | 29 | ||
29 | if ( m_layout ) { | 30 | if ( m_layout ) { |
30 | delete m_layout; | 31 | delete m_layout; |
31 | } | 32 | } |
32 | m_layout = new QHBoxLayout( this ); | 33 | m_layout = new QHBoxLayout( this ); |
33 | m_layout->setAutoAdd( true ); | 34 | m_layout->setAutoAdd( true ); |
34 | 35 | ||
35 | readConfig(); | 36 | readConfig(); |
36 | getInfo(); | 37 | getInfo(); |
37 | } | 38 | } |
38 | 39 | ||
39 | 40 | ||
40 | ExamplePluginWidget::~ExamplePluginWidget() { | 41 | ExamplePluginWidget::~ExamplePluginWidget() { |
41 | delete m_exampleLabel; | 42 | delete m_exampleLabel; |
42 | delete m_layout; | 43 | delete m_layout; |
43 | } | 44 | } |
44 | 45 | ||
45 | 46 | ||
46 | void ExamplePluginWidget::readConfig() { | 47 | void ExamplePluginWidget::readConfig() { |
47 | // we dont have any config entries in this plugin | 48 | // we dont have any config entries in this plugin |
48 | // normally this method is used after today config was used | 49 | // normally this method is used after today config was used |
49 | } | 50 | } |
50 | 51 | ||