-rw-r--r-- | core/pim/today/plugins/mail/mailplugin.cpp | 3 | ||||
-rw-r--r-- | core/pim/today/plugins/mail/mailplugin.h | 7 |
2 files changed, 1 insertions, 9 deletions
diff --git a/core/pim/today/plugins/mail/mailplugin.cpp b/core/pim/today/plugins/mail/mailplugin.cpp index b30d2a2..f590ebb 100644 --- a/core/pim/today/plugins/mail/mailplugin.cpp +++ b/core/pim/today/plugins/mail/mailplugin.cpp @@ -23,5 +23,4 @@ MailPlugin::MailPlugin() { MailPlugin::~MailPlugin() { - delete (MailPluginWidget*)m_widget; } @@ -39,7 +38,5 @@ QString MailPlugin::pixmapNameWidget() const { QWidget* MailPlugin::widget( QWidget * wid ) { - if(!m_widget) { m_widget = new MailPluginWidget( wid, "Datebook" ); - } return m_widget; } diff --git a/core/pim/today/plugins/mail/mailplugin.h b/core/pim/today/plugins/mail/mailplugin.h index 1edffef..1e694bc 100644 --- a/core/pim/today/plugins/mail/mailplugin.h +++ b/core/pim/today/plugins/mail/mailplugin.h @@ -24,9 +24,4 @@ #include <opie2/todayconfigwidget.h> -#include <qwidget.h> -#include <qguardedptr.h> - - - class MailPlugin : public TodayPluginObject { @@ -48,5 +43,5 @@ public: private: - QGuardedPtr<MailPluginWidget> m_widget; + MailPluginWidget* m_widget; }; |