Diffstat (limited to 'core/pim/todo/templatedialogimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/templatedialogimpl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/pim/todo/templatedialogimpl.cpp b/core/pim/todo/templatedialogimpl.cpp index 77c5363..fed92f0 100644 --- a/core/pim/todo/templatedialogimpl.cpp +++ b/core/pim/todo/templatedialogimpl.cpp @@ -6,12 +6,14 @@ #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& ); @@ -58,22 +60,22 @@ TemplateDialogImpl::TemplateDialogImpl( MainWindow* win, /* not the fastest way.... */ QStringList list = man->templates(); for (QStringList::Iterator it = list.begin(); it != list.end(); ++it ) { new TemplateListItem( listView(), (*it), man->templateEvent( (*it) ) ); } - listView()->addColumn( tr("Name") ); + listView()->addColumn( QWidget::tr("Name") ); connect( listView(), SIGNAL(clicked(QListViewItem*) ), this, SLOT(slotClicked(QListViewItem*) ) ); } TemplateDialogImpl::~TemplateDialogImpl() { } void TemplateDialogImpl::slotAdd() { - QString str = tr("New Template %1").arg( listView()->childCount() ); + QString str = QWidget::tr("New Template %1").arg( listView()->childCount() ); OTodo ev; m_man->addEvent(str, ev); new TemplateListItem( listView(), str, ev ); } void TemplateDialogImpl::slotRemove() { TemplateListItem* item = (TemplateListItem*) listView()->currentItem(); @@ -84,15 +86,13 @@ void TemplateDialogImpl::slotRemove() { delete item; } void TemplateDialogImpl::slotEdit() { TemplateListItem* item = (TemplateListItem*)listView()->currentItem(); OTodo ev = m_win->currentEditor()->edit( m_win, item->event() ); if ( m_win->currentEditor()->accepted() ) { - qWarning("accepted"); item->setEvent( ev ); - qWarning("Priority %d", ev.priority() ); m_man->removeEvent( item->text() ); m_man->addEvent( item->text(), ev ); } } /* * we need to update @@ -110,10 +110,10 @@ void TemplateDialogImpl::slotReturn() { } /* update the lineedit when changing */ void TemplateDialogImpl::slotClicked( QListViewItem* item) { if (!item) return; - TemplateListItem* tbl = (TemplateListItem*)item; + TemplateListItem* tbl = static_cast<TemplateListItem*>(item); edit()->setText( tbl->text() ); } |