summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/templatedialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/todo/templatedialog.cpp b/core/pim/todo/templatedialog.cpp
index ffcdc24..c94f69c 100644
--- a/core/pim/todo/templatedialog.cpp
+++ b/core/pim/todo/templatedialog.cpp
@@ -1,60 +1,60 @@
1#include <qpushbutton.h> 1#include <qpushbutton.h>
2#include <qhbox.h> 2#include <qhbox.h>
3#include <qlayout.h> 3#include <qlayout.h>
4#include <qlistview.h> 4#include <qlistview.h>
5#include <qlineedit.h> 5#include <qlineedit.h>
6 6
7#include "templatedialog.h" 7#include "templatedialog.h"
8 8
9 9
10using namespace Todo; 10using namespace Todo;
11 11
12TemplateDialog::TemplateDialog( QWidget* widget ) 12TemplateDialog::TemplateDialog( QWidget* widget )
13 : QDialog( widget, "TemplateDialog", TRUE ) 13 : QDialog( widget, "TemplateDialog", TRUE )
14{ 14{
15 setCaption( tr("Template Editor") ); 15 setCaption( tr("Template Editor") );
16 m_main = new QVBoxLayout(this ); 16 m_main = new QVBoxLayout(this );
17 17
18 m_list = new QListView( this ); 18 m_list = new QListView( this );
19 m_main->addWidget( m_list, 100 ); 19 m_main->addWidget( m_list, 100 );
20 20
21 m_lne = new QLineEdit( this ); 21 m_lne = new QLineEdit( this );
22 m_main->addWidget( m_lne ); 22 m_main->addWidget( m_lne );
23 23
24 m_btnBar = new QHBox( this ); 24 m_btnBar = new QHBox( this );
25 m_add = new QPushButton( tr("Add"), m_btnBar ); 25 m_add = new QPushButton( tr("Add"), m_btnBar );
26 m_edit = new QPushButton( tr("Edit"), m_btnBar ); 26 m_edit = new QPushButton( tr("Edit"), m_btnBar );
27 m_rem = new QPushButton( tr("Remove"), m_btnBar ); 27 m_rem = new QPushButton( tr("Remove"), m_btnBar );
28 m_main->addWidget( m_btnBar ); 28 m_main->addWidget( m_btnBar );
29 29
30 connect(m_add, SIGNAL(clicked() ), 30 connect(m_add, SIGNAL(clicked() ),
31 this, SLOT(slotAdd() ) ); 31 this, SLOT(slotAdd() ) );
32 connect(m_edit, SIGNAL(clicked() ), 32 connect(m_edit, SIGNAL(clicked() ),
33 this, SLOT(slotEdit() ) ); 33 this, SLOT(slotEdit() ) );
34 connect(m_rem, SIGNAL(clicked() ), 34 connect(m_rem, SIGNAL(clicked() ),
35 this, SLOT(slotEdit() ) ); 35 this, SLOT(slotRemove() ) );
36 connect(m_lne, SIGNAL(returnPressed() ), 36 connect(m_lne, SIGNAL(returnPressed() ),
37 this, SLOT(slotReturn() ) ); 37 this, SLOT(slotReturn() ) );
38 38
39} 39}
40TemplateDialog::~TemplateDialog() { 40TemplateDialog::~TemplateDialog() {
41 // Qt does delete our widgets 41 // Qt does delete our widgets
42} 42}
43QListView* TemplateDialog::listView() { 43QListView* TemplateDialog::listView() {
44 return m_list; 44 return m_list;
45} 45}
46QLineEdit* TemplateDialog::edit() { 46QLineEdit* TemplateDialog::edit() {
47 return m_lne; 47 return m_lne;
48} 48}
49void TemplateDialog::slotAdd() { 49void TemplateDialog::slotAdd() {
50 qWarning("Not Implemented here"); 50 qWarning("Not Implemented here");
51} 51}
52void TemplateDialog::slotRemove() { 52void TemplateDialog::slotRemove() {
53 qWarning("Not Implemented here"); 53 qWarning("Not Implemented here");
54} 54}
55void TemplateDialog::slotEdit() { 55void TemplateDialog::slotEdit() {
56 qWarning("Not Implemented here"); 56 qWarning("Not Implemented here");
57} 57}
58void TemplateDialog::slotReturn() { 58void TemplateDialog::slotReturn() {
59 qWarning("Not Implemented here"); 59 qWarning("Not Implemented here");
60} 60}