author | drw <drw> | 2005-01-30 00:32:33 (UTC) |
---|---|---|
committer | drw <drw> | 2005-01-30 00:32:33 (UTC) |
commit | 114c5c468032a08205b2d8b7da3966bff6d47875 (patch) (side-by-side diff) | |
tree | bbd79021246e747f7292eda140e424cf9d750ac5 /core/pim/todo/templateeditor.cpp | |
parent | 43f82d5c68e1d7a5b26f862c26a76253a85e7518 (diff) | |
download | opie-114c5c468032a08205b2d8b7da3966bff6d47875.zip opie-114c5c468032a08205b2d8b7da3966bff6d47875.tar.gz opie-114c5c468032a08205b2d8b7da3966bff6d47875.tar.bz2 |
Convert Todo to use new OPimMainWindow functionality, plus some other code clean-ups
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(); -} |