-rw-r--r-- | libopie2/opiepim/ui/todayconfigwidget.cpp | 9 | ||||
-rw-r--r-- | libopie2/opiepim/ui/todayconfigwidget.h | 6 | ||||
-rw-r--r-- | libopie2/opiepim/ui/todayplugininterface.h | 11 | ||||
-rw-r--r-- | libopie2/opiepim/ui/ui.pro | 3 |
4 files changed, 24 insertions, 5 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 | |||
4 | TodayConfigWidget::TodayConfigWidget( QWidget* parent, const char* name, WFlags fl ) | ||
5 | : QWidget( parent, name, fl ) | ||
6 | {} | ||
7 | |||
8 | TodayConfigWidget::~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 | |||
@@ -17,5 +17,5 @@ | |||
17 | */ | 17 | */ |
18 | class TodayConfigWidget : public QWidget { | 18 | class TodayConfigWidget : public QWidget { |
19 | 19 | Q_OBJECT | |
20 | 20 | ||
21 | public: | 21 | public: |
@@ -28,6 +28,6 @@ public: | |||
28 | * @param name The name of the object | 28 | * @param name The name of the object |
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 | ||
33 | /** | 33 | /** |
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 | |||
@@ -81,4 +81,10 @@ public: | |||
81 | * It _needs_ a parent here. | 81 | * It _needs_ a parent here. |
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 | */ |
84 | virtual QWidget* widget( QWidget *parent ) = 0; | 90 | virtual QWidget* widget( QWidget *parent ) = 0; |
@@ -93,6 +99,9 @@ public: | |||
93 | * If the plugin has a config widget, it _needs_ a parent here. | 99 | * If the plugin has a config widget, it _needs_ a parent here. |
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 | ||
98 | /** | 107 | /** |
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 | |||
@@ -5,5 +5,6 @@ HEADERS += ui/opimmainwindow.h \ | |||
5 | 5 | ||
6 | SOURCES += ui/opimmainwindow.cpp \ | 6 | SOURCES += ui/opimmainwindow.cpp \ |
7 | ui/opimrecurrencewidget.cpp | 7 | ui/opimrecurrencewidget.cpp \ |
8 | ui/todayconfigwidget.cpp | ||
8 | 9 | ||
9 | INTERFACES += ui/opimrecurrencebase.ui \ No newline at end of file | 10 | INTERFACES += ui/opimrecurrencebase.ui \ No newline at end of file |