Diffstat (limited to 'core/pim/todo/templatedialogimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/templatedialogimpl.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/pim/todo/templatedialogimpl.cpp b/core/pim/todo/templatedialogimpl.cpp index 63d8107..c9ad3d0 100644 --- a/core/pim/todo/templatedialogimpl.cpp +++ b/core/pim/todo/templatedialogimpl.cpp | |||
@@ -15,28 +15,28 @@ namespace { | |||
15 | public: | 15 | public: |
16 | TemplateListItem( QListView*, | 16 | TemplateListItem( QListView*, |
17 | const QString& name, | 17 | const QString& name, |
18 | const OTodo& ); | 18 | const OPimTodo& ); |
19 | ~TemplateListItem(); | 19 | ~TemplateListItem(); |
20 | 20 | ||
21 | OTodo event()const; | 21 | OPimTodo event()const; |
22 | QString text()const; | 22 | QString text()const; |
23 | void setText(const QString& str ); | 23 | void setText(const QString& str ); |
24 | void setEvent( const OTodo& ); | 24 | void setEvent( const OPimTodo& ); |
25 | private: | 25 | private: |
26 | QString m_name; | 26 | QString m_name; |
27 | OTodo m_ev; | 27 | OPimTodo m_ev; |
28 | }; | 28 | }; |
29 | 29 | ||
30 | /* implementation */ | 30 | /* implementation */ |
31 | TemplateListItem::TemplateListItem( QListView* view, | 31 | TemplateListItem::TemplateListItem( QListView* view, |
32 | const QString& text, | 32 | const QString& text, |
33 | const OTodo& ev ) | 33 | const OPimTodo& ev ) |
34 | : QListViewItem( view ), m_name( text ), m_ev( ev ) | 34 | : QListViewItem( view ), m_name( text ), m_ev( ev ) |
35 | { | 35 | { |
36 | QListViewItem::setText(0, m_name ); | 36 | QListViewItem::setText(0, m_name ); |
37 | } | 37 | } |
38 | TemplateListItem::~TemplateListItem() {} | 38 | TemplateListItem::~TemplateListItem() {} |
39 | OTodo TemplateListItem::event() const { | 39 | OPimTodo TemplateListItem::event() const { |
40 | return m_ev; | 40 | return m_ev; |
41 | } | 41 | } |
42 | QString TemplateListItem::text()const { | 42 | QString TemplateListItem::text()const { |
@@ -46,7 +46,7 @@ namespace { | |||
46 | QListViewItem::setText(0, str ); | 46 | QListViewItem::setText(0, str ); |
47 | m_name = str; | 47 | m_name = str; |
48 | } | 48 | } |
49 | void TemplateListItem::setEvent( const OTodo& ev) { | 49 | void TemplateListItem::setEvent( const OPimTodo& ev) { |
50 | m_ev = ev; | 50 | m_ev = ev; |
51 | } | 51 | } |
52 | } | 52 | } |
@@ -72,7 +72,7 @@ TemplateDialogImpl::~TemplateDialogImpl() { | |||
72 | } | 72 | } |
73 | void TemplateDialogImpl::slotAdd() { | 73 | void TemplateDialogImpl::slotAdd() { |
74 | QString str = QWidget::tr("New Template %1").arg( listView()->childCount() ); | 74 | QString str = QWidget::tr("New Template %1").arg( listView()->childCount() ); |
75 | OTodo ev; | 75 | OPimTodo ev; |
76 | m_man->addEvent(str, ev); | 76 | m_man->addEvent(str, ev); |
77 | new TemplateListItem( listView(), str, ev ); | 77 | new TemplateListItem( listView(), str, ev ); |
78 | } | 78 | } |
@@ -92,7 +92,7 @@ void TemplateDialogImpl::slotEdit() { | |||
92 | return; | 92 | return; |
93 | 93 | ||
94 | TemplateListItem* item = static_cast<TemplateListItem*>( listView()->currentItem() ); | 94 | TemplateListItem* item = static_cast<TemplateListItem*>( listView()->currentItem() ); |
95 | OTodo ev = m_win->currentEditor()->edit( m_win, item->event() ); | 95 | OPimTodo ev = m_win->currentEditor()->edit( m_win, item->event() ); |
96 | if ( m_win->currentEditor()->accepted() ) { | 96 | if ( m_win->currentEditor()->accepted() ) { |
97 | item->setEvent( ev ); | 97 | item->setEvent( ev ); |
98 | m_man->removeEvent( item->text() ); | 98 | m_man->removeEvent( item->text() ); |