author | tille <tille> | 2003-05-12 11:59:38 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-12 11:59:38 (UTC) |
commit | 65a043f4ac4b43967947c1e8d99c629bb993f065 (patch) (unidiff) | |
tree | ad253467cc0ae1ef98b7967b4b84d7b0174c5e8c /noncore | |
parent | 47a67025a4d34635877ece741def266e28e46db8 (diff) | |
download | opie-65a043f4ac4b43967947c1e8d99c629bb993f065.zip opie-65a043f4ac4b43967947c1e8d99c629bb993f065.tar.gz opie-65a043f4ac4b43967947c1e8d99c629bb993f065.tar.bz2 |
ok button gone
-rw-r--r-- | noncore/apps/confedit/mainwindow.cpp | 12 | ||||
-rw-r--r-- | noncore/apps/confedit/mainwindow.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/noncore/apps/confedit/mainwindow.cpp b/noncore/apps/confedit/mainwindow.cpp index 3b8042f..8e36980 100644 --- a/noncore/apps/confedit/mainwindow.cpp +++ b/noncore/apps/confedit/mainwindow.cpp | |||
@@ -32,14 +32,14 @@ | |||
32 | #include "listviewconfdir.h" | 32 | #include "listviewconfdir.h" |
33 | #include "listviewitemconf.h" | 33 | #include "listviewitemconf.h" |
34 | #include "listviewitemconfigentry.h" | 34 | #include "listviewitemconfigentry.h" |
35 | 35 | ||
36 | 36 | ||
37 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : | 37 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : |
38 | QDialog( parent, name, f ), _currentItem(0), _fileItem(0) | 38 | QMainWindow( parent, name, f ), _currentItem(0), _fileItem(0) |
39 | { | 39 | { |
40 | setCaption( tr("Conf File Editor") ); | 40 | setCaption( tr("Conf File Editor") ); |
41 | 41 | ||
42 | //setBaseSize( qApp->globalStrut() ); | 42 | //setBaseSize( qApp->globalStrut() ); |
43 | setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));//, sizePolicy().hasHeightForWidth() ) ); | 43 | setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));//, sizePolicy().hasHeightForWidth() ) ); |
44 | 44 | ||
45 | mainLayout = new QVBoxLayout( this ); | 45 | mainLayout = new QVBoxLayout( this ); |
@@ -60,13 +60,13 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : | |||
60 | 60 | ||
61 | makeMenu(); | 61 | makeMenu(); |
62 | 62 | ||
63 | connect(settingList, SIGNAL( pressed(QListViewItem*) ), | 63 | connect(settingList, SIGNAL( pressed(QListViewItem*) ), |
64 | this, SLOT(setCurrent(QListViewItem*))); | 64 | this, SLOT(setCurrent(QListViewItem*))); |
65 | connect( settingList, SIGNAL( clicked( QListViewItem* ) ), | 65 | connect( settingList, SIGNAL( clicked( QListViewItem* ) ), |
66 | this, SLOT( stopTimer( QListViewItem* ) ) ); | 66 | this, SLOT( stopTimer( QListViewItem* ) ) ); |
67 | 67 | ||
68 | connect( editor->LineEditGroup, SIGNAL( textChanged(const QString&) ), | 68 | connect( editor->LineEditGroup, SIGNAL( textChanged(const QString&) ), |
69 | SLOT( groupChanged(const QString&) ) ); | 69 | SLOT( groupChanged(const QString&) ) ); |
70 | connect( editor->LineEditKey, SIGNAL( textChanged(const QString&) ), | 70 | connect( editor->LineEditKey, SIGNAL( textChanged(const QString&) ), |
71 | SLOT( keyChanged(const QString&) ) ); | 71 | SLOT( keyChanged(const QString&) ) ); |
72 | connect( editor->LineEditValue, SIGNAL( textChanged(const QString&) ), | 72 | connect( editor->LineEditValue, SIGNAL( textChanged(const QString&) ), |
@@ -167,25 +167,25 @@ void MainWindow::stopTimer( QListViewItem* ) | |||
167 | { | 167 | { |
168 | popupTimer->stop(); | 168 | popupTimer->stop(); |
169 | } | 169 | } |
170 | 170 | ||
171 | void MainWindow::saveConfFile() | 171 | void MainWindow::saveConfFile() |
172 | { | 172 | { |
173 | if (!_fileItem) return; | 173 | if (!_fileItem) return; |
174 | _fileItem->save(); | 174 | _fileItem->save(); |
175 | } | 175 | } |
176 | 176 | ||
177 | void MainWindow::revertConfFile() | 177 | void MainWindow::revertConfFile() |
178 | { | 178 | { |
179 | if (!_item) return; | 179 | if (!_item) return; |
180 | _item->revert(); | 180 | _item->revert(); |
181 | } | 181 | } |
182 | 182 | ||
183 | void MainWindow::removeConfFile() | 183 | void MainWindow::removeConfFile() |
184 | { | 184 | { |
185 | if (!_item) return; | 185 | if (!_item) return; |
186 | _item->remove(); | 186 | _item->remove(); |
187 | } | 187 | } |
188 | 188 | ||
189 | void MainWindow::showPopup() | 189 | void MainWindow::showPopup() |
190 | { | 190 | { |
191 | qDebug("showPopup"); | 191 | qDebug("showPopup"); |
diff --git a/noncore/apps/confedit/mainwindow.h b/noncore/apps/confedit/mainwindow.h index 5be4a86..878558a 100644 --- a/noncore/apps/confedit/mainwindow.h +++ b/noncore/apps/confedit/mainwindow.h | |||
@@ -21,13 +21,13 @@ | |||
21 | 21 | ||
22 | class QPEToolBar; | 22 | class QPEToolBar; |
23 | class ListViewItemConfFile; | 23 | class ListViewItemConfFile; |
24 | class ListViewConfDir; | 24 | class ListViewConfDir; |
25 | class ListViewItemConf; | 25 | class ListViewItemConf; |
26 | 26 | ||
27 | class MainWindow : public QDialog//QMainWindow | 27 | class MainWindow : public QMainWindow |
28 | { | 28 | { |
29 | Q_OBJECT | 29 | Q_OBJECT |
30 | 30 | ||
31 | 31 | ||
32 | public: | 32 | public: |
33 | MainWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 33 | MainWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |