summaryrefslogtreecommitdiff
path: root/core/pim/todo/templatedialogimpl.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/todo/templatedialogimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/templatedialogimpl.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/pim/todo/templatedialogimpl.cpp b/core/pim/todo/templatedialogimpl.cpp
index fed92f0..c2306ac 100644
--- a/core/pim/todo/templatedialogimpl.cpp
+++ b/core/pim/todo/templatedialogimpl.cpp
@@ -1,49 +1,48 @@
-#include <qlistview.h>
#include <qlineedit.h>
#include "mainwindow.h"
#include "todoeditor.h"
#include "todotemplatemanager.h"
#include "templatedialogimpl.h"
using namespace Todo;
/* TRANSLATOR Todo::TemplateDialogImpl */
namespace {
class TemplateListItem : public QListViewItem {
public:
TemplateListItem( QListView*,
const QString& name,
const OTodo& );
~TemplateListItem();
OTodo event()const;
QString text()const;
void setText(const QString& str );
void setEvent( const OTodo& );
private:
QString m_name;
OTodo m_ev;
};
/* implementation */
TemplateListItem::TemplateListItem( QListView* view,
const QString& text,
const OTodo& ev )
: QListViewItem( view ), m_name( text ), m_ev( ev )
{
QListViewItem::setText(0, m_name );
}
TemplateListItem::~TemplateListItem() {}
OTodo TemplateListItem::event() const {
return m_ev;
}
QString TemplateListItem::text()const {
return m_name;
}
void TemplateListItem::setText( const QString& str ) {
QListViewItem::setText(0, str );
m_name = str;
}