summaryrefslogtreecommitdiff
path: root/core/pim/today/plugins/datebook/datebookplugin.cpp
authorzecke <zecke>2004-09-12 20:28:36 (UTC)
committer zecke <zecke>2004-09-12 20:28:36 (UTC)
commit90aaa298cc69522e88e1f81ade7d5259131b1544 (patch) (unidiff)
tree86bdb0a2bb94938754ba94f2ded9dc6ec5fb5207 /core/pim/today/plugins/datebook/datebookplugin.cpp
parent00952f16786dcd069820e45df83a00b6c477893b (diff)
downloadopie-90aaa298cc69522e88e1f81ade7d5259131b1544.zip
opie-90aaa298cc69522e88e1f81ade7d5259131b1544.tar.gz
opie-90aaa298cc69522e88e1f81ade7d5259131b1544.tar.bz2
Follow the defined Ownership and have a maybe not needed
sanity check
Diffstat (limited to 'core/pim/today/plugins/datebook/datebookplugin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/datebook/datebookplugin.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/pim/today/plugins/datebook/datebookplugin.cpp b/core/pim/today/plugins/datebook/datebookplugin.cpp
index f46806f..892a0ad 100644
--- a/core/pim/today/plugins/datebook/datebookplugin.cpp
+++ b/core/pim/today/plugins/datebook/datebookplugin.cpp
@@ -9,47 +9,44 @@
9 * * 9 * *
10 * This program is free software; you can redistribute it and/or modify * 10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by * 11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or * 12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. * 13 * (at your option) any later version. *
14 * * 14 * *
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
17#include "datebookplugin.h" 17#include "datebookplugin.h"
18#include "datebookpluginconfig.h" 18#include "datebookpluginconfig.h"
19 19
20 20
21DatebookPlugin::DatebookPlugin() { 21DatebookPlugin::DatebookPlugin() {
22} 22}
23 23
24DatebookPlugin::~DatebookPlugin() { 24DatebookPlugin::~DatebookPlugin() {
25 delete (DatebookPluginWidget*)m_widget;
26} 25}
27 26
28QString DatebookPlugin::pluginName() const { 27QString DatebookPlugin::pluginName() const {
29 return QObject::tr( "Datebook plugin"); 28 return QObject::tr( "Datebook plugin");
30} 29}
31 30
32double DatebookPlugin::versionNumber() const { 31double DatebookPlugin::versionNumber() const {
33 return 1.0; 32 return 1.0;
34} 33}
35 34
36QString DatebookPlugin::pixmapNameWidget() const { 35QString DatebookPlugin::pixmapNameWidget() const {
37 return "datebook/DateBook"; 36 return "datebook/DateBook";
38} 37}
39 38
40QWidget* DatebookPlugin::widget( QWidget* wid ) { 39QWidget* DatebookPlugin::widget( QWidget* wid ) {
41 if(!m_widget) { 40 m_widget = new DatebookPluginWidget( wid, "Datebook" );
42 m_widget = new DatebookPluginWidget( wid, "Datebook" );
43 }
44 return m_widget; 41 return m_widget;
45} 42}
46 43
47QString DatebookPlugin::pixmapNameConfig() const { 44QString DatebookPlugin::pixmapNameConfig() const {
48 return "datebook/DateBook"; 45 return "datebook/DateBook";
49} 46}
50 47
51TodayConfigWidget* DatebookPlugin::configWidget( QWidget* wid ) { 48TodayConfigWidget* DatebookPlugin::configWidget( QWidget* wid ) {
52 return new DatebookPluginConfig( wid , "Datebook" ); 49 return new DatebookPluginConfig( wid , "Datebook" );
53} 50}
54 51
55QString DatebookPlugin::appName() const { 52QString DatebookPlugin::appName() const {