-rw-r--r-- | core/pim/today/plugins/datebook/datebookplugin.cpp | 3 | ||||
-rw-r--r-- | core/pim/today/plugins/datebook/datebookplugin.h | 3 | ||||
-rw-r--r-- | core/pim/today/plugins/todolist/todoplugin.cpp | 3 | ||||
-rw-r--r-- | core/pim/today/plugins/todolist/todoplugin.h | 3 |
4 files changed, 6 insertions, 6 deletions
diff --git a/core/pim/today/plugins/datebook/datebookplugin.cpp b/core/pim/today/plugins/datebook/datebookplugin.cpp index 2ac7d01..f095478 100644 --- a/core/pim/today/plugins/datebook/datebookplugin.cpp +++ b/core/pim/today/plugins/datebook/datebookplugin.cpp | |||
@@ -20,17 +20,16 @@ | |||
20 | #include "datebookevent.h" | 20 | #include "datebookevent.h" |
21 | #include "datebookplugin.h" | 21 | #include "datebookplugin.h" |
22 | #include "datebookpluginconfig.h" | 22 | #include "datebookpluginconfig.h" |
23 | 23 | ||
24 | 24 | ||
25 | DatebookPlugin::DatebookPlugin() { | 25 | DatebookPlugin::DatebookPlugin() { |
26 | m_widget = 0; | ||
27 | } | 26 | } |
28 | 27 | ||
29 | DatebookPlugin::~DatebookPlugin() { | 28 | DatebookPlugin::~DatebookPlugin() { |
30 | delete m_widget; | 29 | delete (DatebookPluginWidget*)m_widget; |
31 | } | 30 | } |
32 | 31 | ||
33 | QString DatebookPlugin::pluginName() const { | 32 | QString DatebookPlugin::pluginName() const { |
34 | return QObject::tr( "Datebook plugin"); | 33 | return QObject::tr( "Datebook plugin"); |
35 | } | 34 | } |
36 | 35 | ||
diff --git a/core/pim/today/plugins/datebook/datebookplugin.h b/core/pim/today/plugins/datebook/datebookplugin.h index 644a614..eb7a401 100644 --- a/core/pim/today/plugins/datebook/datebookplugin.h +++ b/core/pim/today/plugins/datebook/datebookplugin.h | |||
@@ -15,12 +15,13 @@ | |||
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | #ifndef DATEBOOK_PLUGIN_H | 17 | #ifndef DATEBOOK_PLUGIN_H |
18 | #define DATEBOOK_PLUGIN_H | 18 | #define DATEBOOK_PLUGIN_H |
19 | 19 | ||
20 | #include <qstring.h> | 20 | #include <qstring.h> |
21 | #include <qguardedptr.h> | ||
21 | #include <qwidget.h> | 22 | #include <qwidget.h> |
22 | 23 | ||
23 | #include <opie/oclickablelabel.h> | 24 | #include <opie/oclickablelabel.h> |
24 | #include <opie/todayplugininterface.h> | 25 | #include <opie/todayplugininterface.h> |
25 | 26 | ||
26 | #include "datebookpluginwidget.h" | 27 | #include "datebookpluginwidget.h" |
@@ -39,11 +40,11 @@ public: | |||
39 | TodayConfigWidget* configWidget( QWidget *); | 40 | TodayConfigWidget* configWidget( QWidget *); |
40 | QString appName() const; | 41 | QString appName() const; |
41 | bool excludeFromRefresh() const; | 42 | bool excludeFromRefresh() const; |
42 | void refresh(); | 43 | void refresh(); |
43 | 44 | ||
44 | private: | 45 | private: |
45 | DatebookPluginWidget *m_widget; | 46 | QGuardedPtr<DatebookPluginWidget> m_widget; |
46 | }; | 47 | }; |
47 | 48 | ||
48 | 49 | ||
49 | #endif | 50 | #endif |
diff --git a/core/pim/today/plugins/todolist/todoplugin.cpp b/core/pim/today/plugins/todolist/todoplugin.cpp index 1238f92..bff0eba 100644 --- a/core/pim/today/plugins/todolist/todoplugin.cpp +++ b/core/pim/today/plugins/todolist/todoplugin.cpp | |||
@@ -18,17 +18,16 @@ | |||
18 | 18 | ||
19 | #include "todoplugin.h" | 19 | #include "todoplugin.h" |
20 | #include "todopluginconfig.h" | 20 | #include "todopluginconfig.h" |
21 | 21 | ||
22 | 22 | ||
23 | TodolistPlugin::TodolistPlugin() { | 23 | TodolistPlugin::TodolistPlugin() { |
24 | m_widget = 0l; | ||
25 | } | 24 | } |
26 | 25 | ||
27 | TodolistPlugin::~TodolistPlugin() { | 26 | TodolistPlugin::~TodolistPlugin() { |
28 | delete m_widget; | 27 | delete (TodolistPluginWidget*)m_widget; |
29 | } | 28 | } |
30 | 29 | ||
31 | QString TodolistPlugin::pluginName() const { | 30 | QString TodolistPlugin::pluginName() const { |
32 | return QObject::tr( "Todolist plugin" ); | 31 | return QObject::tr( "Todolist plugin" ); |
33 | } | 32 | } |
34 | 33 | ||
diff --git a/core/pim/today/plugins/todolist/todoplugin.h b/core/pim/today/plugins/todolist/todoplugin.h index 6106d0c..7a2235c 100644 --- a/core/pim/today/plugins/todolist/todoplugin.h +++ b/core/pim/today/plugins/todolist/todoplugin.h | |||
@@ -15,12 +15,13 @@ | |||
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | #ifndef TODOLIST_PLUGIN_H | 17 | #ifndef TODOLIST_PLUGIN_H |
18 | #define TODOLIST_PLUGIN_H | 18 | #define TODOLIST_PLUGIN_H |
19 | 19 | ||
20 | #include <qstring.h> | 20 | #include <qstring.h> |
21 | #include <qguardedptr.h> | ||
21 | #include <qwidget.h> | 22 | #include <qwidget.h> |
22 | 23 | ||
23 | #include <opie/tododb.h> | 24 | #include <opie/tododb.h> |
24 | #include <opie/oclickablelabel.h> | 25 | #include <opie/oclickablelabel.h> |
25 | #include <opie/todayplugininterface.h> | 26 | #include <opie/todayplugininterface.h> |
26 | 27 | ||
@@ -40,10 +41,10 @@ public: | |||
40 | TodayConfigWidget* configWidget(QWidget *); | 41 | TodayConfigWidget* configWidget(QWidget *); |
41 | QString appName() const; | 42 | QString appName() const; |
42 | bool excludeFromRefresh() const; | 43 | bool excludeFromRefresh() const; |
43 | void refresh(); | 44 | void refresh(); |
44 | 45 | ||
45 | private: | 46 | private: |
46 | TodolistPluginWidget *m_widget; | 47 | QGuardedPtr<TodolistPluginWidget> m_widget; |
47 | }; | 48 | }; |
48 | 49 | ||
49 | #endif | 50 | #endif |