summaryrefslogtreecommitdiff
path: root/noncore/apps/tableviewer/ui/tvkeyedit.cpp
Unidiff
Diffstat (limited to 'noncore/apps/tableviewer/ui/tvkeyedit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/tableviewer/ui/tvkeyedit.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/apps/tableviewer/ui/tvkeyedit.cpp b/noncore/apps/tableviewer/ui/tvkeyedit.cpp
index 4849e87..c22ecd3 100644
--- a/noncore/apps/tableviewer/ui/tvkeyedit.cpp
+++ b/noncore/apps/tableviewer/ui/tvkeyedit.cpp
@@ -23,12 +23,14 @@
23#include <qcombobox.h> 23#include <qcombobox.h>
24#include <qlistview.h> 24#include <qlistview.h>
25#include <qmessagebox.h> 25#include <qmessagebox.h>
26#include <stdlib.h> 26#include <stdlib.h>
27#include <qpushbutton.h> 27#include <qpushbutton.h>
28 28
29#include <qpe/qpeapplication.h>
30
29/* QList view item... ?? that can store and update the values that I will 31/* QList view item... ?? that can store and update the values that I will
30 * be changing */ 32 * be changing */
31 33
32class TVKEListViewItem : public QListViewItem 34class TVKEListViewItem : public QListViewItem
33{ 35{
34public: 36public:
@@ -132,25 +134,25 @@ TVKeyEdit::TVKeyEdit(TableState *t, QWidget* parent, const char *name,
132 keyNameEdit->setEnabled(FALSE); 134 keyNameEdit->setEnabled(FALSE);
133 keyTypeEdit->setEnabled(FALSE); 135 keyTypeEdit->setEnabled(FALSE);
134 } 136 }
135 137
136 display->setSorting(0); 138 display->setSorting(0);
137#ifdef Q_WS_QWS 139#ifdef Q_WS_QWS
138 showMaximized(); 140 QPEApplication::showDialog( this );
139#endif 141#endif
140} 142}
141 143
142/*! 144/*!
143 Destroys the TVKeyEdit widget 145 Destroys the TVKeyEdit widget
144*/ 146*/
145TVKeyEdit::~TVKeyEdit() 147TVKeyEdit::~TVKeyEdit()
146{ 148{
147} 149}
148 150
149/* SLOTS */ 151/* SLOTS */
150void TVKeyEdit::newTerm() 152void TVKeyEdit::newTerm()
151{ 153{
152 /* new item, make current Item */ 154 /* new item, make current Item */
153 int i; 155 int i;
154 156
155 i = working_state.addKey("<New Key>", TVVariant::String); 157 i = working_state.addKey("<New Key>", TVVariant::String);
156 //working_state.setNewFlag(i, TRUE); 158 //working_state.setNewFlag(i, TRUE);