Diffstat (limited to 'core/pim/todo/templateeditor.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/todo/templateeditor.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/core/pim/todo/templateeditor.cpp b/core/pim/todo/templateeditor.cpp deleted file mode 100644 index ca02173..0000000 --- a/core/pim/todo/templateeditor.cpp +++ b/dev/null @@ -1,38 +0,0 @@ -#include <qaction.h> -#include <qpopupmenu.h> - -#include "mainwindow.h" -#include "todotemplatemanager.h" - -#include "templatedialogimpl.h" -#include "templateeditor.h" - -using namespace Todo; - -TemplateEditor::TemplateEditor( MainWindow* main, - TemplateManager* manager ) - : QObject( main ), m_main( main ), m_man( manager ) -{ - init(); - -} -TemplateEditor::~TemplateEditor() { - -} -/* ok we add us to the Menubar */ -void TemplateEditor::init() { - QAction* a = new QAction( QString::null, QWidget::tr("Configure Templates"), - 0, this, 0, FALSE ); - connect(a, SIGNAL(activated() ), - this, SLOT(setUp() ) ); - - a->addTo( m_main->options() ); -} -void TemplateEditor::setUp() { - TemplateDialogImpl dlg(m_main, m_man ); - int ret= dlg.exec(); - if (QDialog::Accepted != ret ) - m_man->load(); - else - m_main->populateTemplates(); -} |