summaryrefslogtreecommitdiff
path: root/libopie2
authorzecke <zecke>2004-09-12 20:27:35 (UTC)
committer zecke <zecke>2004-09-12 20:27:35 (UTC)
commit00952f16786dcd069820e45df83a00b6c477893b (patch) (unidiff)
treeceb7ec8add37ea596c4953eab704ec24890cbb31 /libopie2
parentb78e2e2486cdb69a173cb6ff1910c69f5381d850 (diff)
downloadopie-00952f16786dcd069820e45df83a00b6c477893b.zip
opie-00952f16786dcd069820e45df83a00b6c477893b.tar.gz
opie-00952f16786dcd069820e45df83a00b6c477893b.tar.bz2
-Define ownership of widget and configwidget
-Implement C'tor and D'tor of TodayConfigWidget
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/ui/todayconfigwidget.cpp9
-rw-r--r--libopie2/opiepim/ui/todayconfigwidget.h6
-rw-r--r--libopie2/opiepim/ui/todayplugininterface.h11
-rw-r--r--libopie2/opiepim/ui/ui.pro5
4 files changed, 25 insertions, 6 deletions
diff --git a/libopie2/opiepim/ui/todayconfigwidget.cpp b/libopie2/opiepim/ui/todayconfigwidget.cpp
new file mode 100644
index 0000000..cc98556
--- a/dev/null
+++ b/libopie2/opiepim/ui/todayconfigwidget.cpp
@@ -0,0 +1,9 @@
1#include "todayconfigwidget.h"
2
3
4TodayConfigWidget::TodayConfigWidget( QWidget* parent, const char* name, WFlags fl )
5 : QWidget( parent, name, fl )
6{}
7
8TodayConfigWidget::~TodayConfigWidget()
9{}
diff --git a/libopie2/opiepim/ui/todayconfigwidget.h b/libopie2/opiepim/ui/todayconfigwidget.h
index 134fbdf..5048998 100644
--- a/libopie2/opiepim/ui/todayconfigwidget.h
+++ b/libopie2/opiepim/ui/todayconfigwidget.h
@@ -18,3 +18,3 @@
18class TodayConfigWidget : public QWidget { 18class TodayConfigWidget : public QWidget {
19 19 Q_OBJECT
20 20
@@ -29,4 +29,4 @@ public:
29 */ 29 */
30 TodayConfigWidget( QWidget *parent, const char *name ) : QWidget( parent, name ) {} ; 30 TodayConfigWidget( QWidget *parent, const char *name = 0, WFlags fl = 0 );
31 virtual ~TodayConfigWidget() {}; 31 virtual ~TodayConfigWidget();
32 32
diff --git a/libopie2/opiepim/ui/todayplugininterface.h b/libopie2/opiepim/ui/todayplugininterface.h
index 5dfeaa8..2b7f1e5 100644
--- a/libopie2/opiepim/ui/todayplugininterface.h
+++ b/libopie2/opiepim/ui/todayplugininterface.h
@@ -82,2 +82,8 @@ public:
82 * Plugin authors need to take parent as parent! 82 * Plugin authors need to take parent as parent!
83 *
84 * Note that you always need to create a new QWidget
85 * on this call and the ownership is transfered to the
86 * caller.
87 *
88 * @param The parent of your to be created widget
83 */ 89 */
@@ -94,4 +100,7 @@ public:
94 * may return 0 if no config widget is needed 100 * may return 0 if no config widget is needed
101 *
102 * Note: Always create a new Widget on this call and ownership
103 * is transfered
95 */ 104 */
96 virtual TodayConfigWidget* configWidget( QWidget * ) = 0; 105 virtual TodayConfigWidget* configWidget( QWidget *parent ) = 0;
97 106
diff --git a/libopie2/opiepim/ui/ui.pro b/libopie2/opiepim/ui/ui.pro
index 6aa01a7..53c7ae2 100644
--- a/libopie2/opiepim/ui/ui.pro
+++ b/libopie2/opiepim/ui/ui.pro
@@ -6,4 +6,5 @@ HEADERS += ui/opimmainwindow.h \
6SOURCES += ui/opimmainwindow.cpp \ 6SOURCES += ui/opimmainwindow.cpp \
7 ui/opimrecurrencewidget.cpp 7 ui/opimrecurrencewidget.cpp \
8 ui/todayconfigwidget.cpp
8 9
9INTERFACES += ui/opimrecurrencebase.ui \ No newline at end of file 10INTERFACES += ui/opimrecurrencebase.ui