summaryrefslogtreecommitdiff
path: root/core/pim/today
authorzecke <zecke>2002-09-15 21:56:23 (UTC)
committer zecke <zecke>2002-09-15 21:56:23 (UTC)
commite288526f385ab520da2f625590d463d2bb1ff687 (patch) (side-by-side diff)
tree9b6fe69cdac660e644f9264d550bcab5c57e84f7 /core/pim/today
parent06dc621befb0dc8d0899a9cf80352ffc7fbb9443 (diff)
downloadopie-e288526f385ab520da2f625590d463d2bb1ff687.zip
opie-e288526f385ab520da2f625590d463d2bb1ff687.tar.gz
opie-e288526f385ab520da2f625590d463d2bb1ff687.tar.bz2
Fix some runtime warnings
make configwidget.h include Q_OBJECT add configwidget.h to the plugins use QGuardedPtr inside TodayBase for better debugging
Diffstat (limited to 'core/pim/today') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/configwidget.h3
-rw-r--r--core/pim/today/plugins/datebook/datebook.pro2
-rw-r--r--core/pim/today/plugins/todolist/todolist.pro2
-rw-r--r--core/pim/today/today.pro2
-rw-r--r--core/pim/today/todaybase.h17
5 files changed, 14 insertions, 12 deletions
diff --git a/core/pim/today/configwidget.h b/core/pim/today/configwidget.h
index f449db4..f3a83f9 100644
--- a/core/pim/today/configwidget.h
+++ b/core/pim/today/configwidget.h
@@ -2,10 +2,11 @@
#ifndef CONFIG_WIDGET_H
#define CONFIG_WIDGET_H
+#include <qwidget.h>
class ConfigWidget : public QWidget {
-
+ Q_OBJECT
public:
ConfigWidget( QWidget *parent, const char *name ) : QWidget( parent, name ) {};
diff --git a/core/pim/today/plugins/datebook/datebook.pro b/core/pim/today/plugins/datebook/datebook.pro
index 615059a..7f5dfed 100644
--- a/core/pim/today/plugins/datebook/datebook.pro
+++ b/core/pim/today/plugins/datebook/datebook.pro
@@ -4,7 +4,7 @@ CONFIG += qt debug
# Input
HEADERS = datebookplugin.h datebookpluginimpl.h datebookpluginconfig.h \
- datebookevent.h datebookpluginwidget.h
+ datebookevent.h datebookpluginwidget.h ../../configwidget.h
SOURCES = datebookplugin.cpp datebookpluginimpl.cpp datebookpluginconfig.cpp \
datebookevent.cpp datebookpluginwidget.cpp
diff --git a/core/pim/today/plugins/todolist/todolist.pro b/core/pim/today/plugins/todolist/todolist.pro
index 1f9c61c..8162985 100644
--- a/core/pim/today/plugins/todolist/todolist.pro
+++ b/core/pim/today/plugins/todolist/todolist.pro
@@ -5,7 +5,7 @@ CONFIG += qt debug
# Input
HEADERS = todoplugin.h todopluginimpl.h todopluginconfig.h \
- todopluginwidget.h
+ todopluginwidget.h ../../configwidget.h
SOURCES = todoplugin.cpp todopluginimpl.cpp todopluginconfig.cpp \
todopluginwidget.cpp
diff --git a/core/pim/today/today.pro b/core/pim/today/today.pro
index 8596da3..5328d9f 100644
--- a/core/pim/today/today.pro
+++ b/core/pim/today/today.pro
@@ -1,7 +1,7 @@
TEMPLATE = app
CONFIG = qt warn_on debug
#CONFIG = qt warn_on release
-HEADERS = today.h todaybase.h todayconfig.h
+HEADERS = today.h todaybase.h todayconfig.h configwidget.h
SOURCES = main.cpp today.cpp todaybase.cpp todayconfig.cpp
INCLUDEPATH += $(OPIEDIR)/include
DEPENDPATH += $(OPIEDIR)/include
diff --git a/core/pim/today/todaybase.h b/core/pim/today/todaybase.h
index 7c50f32..0e53510 100644
--- a/core/pim/today/todaybase.h
+++ b/core/pim/today/todaybase.h
@@ -18,6 +18,7 @@
#define TODAYBASE_H
#include <qlayout.h>
+#include <qguardedptr.h>
#include <opie/oclickablelabel.h>
class QVBox;
@@ -36,14 +37,14 @@ public:
TodayBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~TodayBase();
- QFrame* Frame4;
- QPushButton* DatesButton;
- QVBoxLayout* layout;
- OClickableLabel* OwnerField;
- QLabel* Frame;
- QLabel* DateLabel;
- QFrame* Frame15;
- OClickableLabel* ConfigButton;
+ QGuardedPtr<QFrame> Frame4;
+ QGuardedPtr<QPushButton> DatesButton;
+ QGuardedPtr<QVBoxLayout> layout;
+ QGuardedPtr<OClickableLabel> OwnerField;
+ QGuardedPtr<QLabel> Frame;
+ QGuardedPtr<QLabel> DateLabel;
+ QGuardedPtr<QFrame> Frame15;
+ QGuardedPtr<OClickableLabel> ConfigButton;
protected: