summaryrefslogtreecommitdiff
path: root/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
Unidiff
Diffstat (limited to 'core/pim/today/plugins/datebook/datebookpluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/datebook/datebookpluginwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
index 3a7360d..97fb77e 100644
--- a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
+++ b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
@@ -6,50 +6,50 @@
6 * 6 *
7 */ 7 */
8/*************************************************************************** 8/***************************************************************************
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 17
18#include "datebookpluginwidget.h" 18#include "datebookpluginwidget.h"
19 19
20#include <qpe/timestring.h> 20#include <qpe/timestring.h>
21#include <qpe/config.h> 21#include <qpe/config.h>
22 22
23#include <qdatetime.h> 23#include <qdatetime.h>
24#include <qlabel.h> 24#include <qlabel.h>
25#include <qlayout.h> 25#include <qlayout.h>
26#include <qtl.h> 26#include <qtl.h>
27#include <qscrollview.h> 27#include <qscrollview.h>
28#include <qtimer.h> 28#include <qtimer.h>
29 29
30DatebookPluginWidget::DatebookPluginWidget( QWidget *parent, const char* name) 30DatebookPluginWidget::DatebookPluginWidget( QWidget *parent, const char* name )
31 : QWidget(parent, name ) { 31 : QWidget(parent, name ) {
32 32
33 db = 0l; 33 db = 0l;
34 m_layoutDates = 0l; 34 m_layoutDates = 0l;
35 35
36 if ( db ) { 36 if ( db ) {
37 delete db; 37 delete db;
38 } 38 }
39 db = new DateBookDB; 39 db = new DateBookDB;
40 40
41 if ( m_layoutDates ) { 41 if ( m_layoutDates ) {
42 delete m_layoutDates; 42 delete m_layoutDates;
43 } 43 }
44 m_layoutDates = new QVBoxLayout( this ); 44 m_layoutDates = new QVBoxLayout( this );
45 m_layoutDates->setAutoAdd( true ); 45 m_layoutDates->setAutoAdd( true );
46 46
47 m_eventsList.setAutoDelete( true ); 47 m_eventsList.setAutoDelete( true );
48 48
49 readConfig(); 49 readConfig();
50 getDates(); 50 getDates();
51} 51}
52 52
53DatebookPluginWidget::~DatebookPluginWidget() { 53DatebookPluginWidget::~DatebookPluginWidget() {
54 delete db; 54 delete db;
55 delete m_layoutDates; 55 delete m_layoutDates;