author | zecke <zecke> | 2004-03-14 20:55:00 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-14 20:55:00 (UTC) |
commit | 594e12002884f0e105eea3cea75504acca5730a2 (patch) (side-by-side diff) | |
tree | 658625e7bb36a64af3f2d9632d6ccccbaa18c627 | |
parent | b7362708c9d5a1765aa22fdcc87a9b3009cda6b9 (diff) | |
download | opie-594e12002884f0e105eea3cea75504acca5730a2.zip opie-594e12002884f0e105eea3cea75504acca5730a2.tar.gz opie-594e12002884f0e105eea3cea75504acca5730a2.tar.bz2 |
Now that using namespace if out of the header fixup todo
-rw-r--r-- | core/pim/todo/otaskeditor.cpp | 2 | ||||
-rw-r--r-- | core/pim/todo/otaskeditor.h | 11 | ||||
-rw-r--r-- | core/pim/todo/todoeditor.cpp | 1 | ||||
-rw-r--r-- | core/pim/todo/todoeditor.h | 6 |
4 files changed, 12 insertions, 8 deletions
diff --git a/core/pim/todo/otaskeditor.cpp b/core/pim/todo/otaskeditor.cpp index f0128bc..a8349c1 100644 --- a/core/pim/todo/otaskeditor.cpp +++ b/core/pim/todo/otaskeditor.cpp @@ -1,25 +1,27 @@ #include <qlayout.h> #include "taskeditoroverview.h" #include "taskeditorstatus.h" #include "taskeditoralarms.h" #include "otaskeditor.h" using namespace Opie::Ui; +using namespace Opie; + OTaskEditor::OTaskEditor(int cur) : QDialog( 0, 0, TRUE, WStyle_ContextHelp ) { init(); init( cur ); } OTaskEditor::OTaskEditor( const OPimTodo& to) : QDialog( 0, 0, TRUE, WStyle_ContextHelp ) { init(); init( to ); } OTaskEditor::~OTaskEditor() { } void OTaskEditor::init( int cur ) { OPimTodo to; to.setUid( 1 ); // generate a new uid diff --git a/core/pim/todo/otaskeditor.h b/core/pim/todo/otaskeditor.h index 4a00018..65e7bda 100644 --- a/core/pim/todo/otaskeditor.h +++ b/core/pim/todo/otaskeditor.h @@ -1,43 +1,44 @@ #ifndef OPIE_TASK_EDITOR_H #define OPIE_TASK_EDITOR_H #include <qdialog.h> #include <opie2/opimtodo.h> #include <opie2/otabwidget.h> #include <opie2/opimrecurrencewidget.h> +#include <opie2/opimrecurrencewidget.h> class TaskEditorOverView; class TaskEditorStatus; class TaskEditorAlarms; class QMultiLineEdit; class OTaskEditor : public QDialog { Q_OBJECT public: OTaskEditor(int cur); - OTaskEditor( const OPimTodo& todo ); + OTaskEditor( const Opie::OPimTodo& todo ); ~OTaskEditor(); /* * same as the c'tor but this gives us the * power to 'preload' the dialog */ void init( int cur ); - void init( const OPimTodo& todo ); + void init( const Opie::OPimTodo& todo ); - OPimTodo todo()const; + Opie::OPimTodo todo()const; private: - void load( const OPimTodo& ); + void load( const Opie::OPimTodo& ); void init(); Opie::Ui::OTabWidget *m_tab; TaskEditorOverView *m_overView; TaskEditorStatus *m_stat; TaskEditorAlarms *m_alarm; TaskEditorAlarms *m_remind; OPimRecurrenceWidget *m_rec; - OPimTodo m_todo; + Opie::OPimTodo m_todo; }; #endif diff --git a/core/pim/todo/todoeditor.cpp b/core/pim/todo/todoeditor.cpp index 879d809..4b5ecb1 100644 --- a/core/pim/todo/todoeditor.cpp +++ b/core/pim/todo/todoeditor.cpp @@ -1,22 +1,23 @@ #include <qpe/qpeapplication.h> #include "otaskeditor.h" #include "todoeditor.h" +using namespace Opie; using namespace Todo; Editor::Editor() { m_accepted = false; m_self = 0l; } Editor::~Editor() { delete m_self; m_self = 0; } OPimTodo Editor::newTodo( int cur, QWidget*) { OTaskEditor *e = self(); e->setCaption( QObject::tr("Enter Task") ); e->init( cur ); diff --git a/core/pim/todo/todoeditor.h b/core/pim/todo/todoeditor.h index bcfd205..1ac7f8a 100644 --- a/core/pim/todo/todoeditor.h +++ b/core/pim/todo/todoeditor.h @@ -1,29 +1,29 @@ #ifndef OPIE_TODO_EDITOR_H #define OPIE_TODO_EDITOR_H #include <opie2/opimtodo.h> class OTaskEditor; namespace Todo { class Editor { public: Editor(); ~Editor(); - OPimTodo newTodo( int currentCatId, + Opie::OPimTodo newTodo( int currentCatId, QWidget* par ); - OPimTodo edit( QWidget* par, - const OPimTodo& ev = OPimTodo() ); + Opie::OPimTodo edit( QWidget* par, + const Opie::OPimTodo& ev = Opie::OPimTodo() ); bool accepted()const; protected: OTaskEditor* self(); private: bool m_accepted: 1; OTaskEditor* m_self; }; }; #endif |