summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/confedit/mainwindow.cpp12
-rw-r--r--noncore/apps/confedit/mainwindow.h2
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
@@ -35,8 +35,8 @@
35 35
36 36
37MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : 37MainWindow::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() );
@@ -63,7 +63,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) :
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&) ) );
@@ -170,19 +170,19 @@ void MainWindow::stopTimer( QListViewItem* )
170 170
171void MainWindow::saveConfFile() 171void MainWindow::saveConfFile()
172{ 172{
173 if (!_fileItem) return; 173 if (!_fileItem) return;
174 _fileItem->save(); 174 _fileItem->save();
175} 175}
176 176
177void MainWindow::revertConfFile() 177void MainWindow::revertConfFile()
178{ 178{
179 if (!_item) return; 179 if (!_item) return;
180 _item->revert(); 180 _item->revert();
181} 181}
182 182
183void MainWindow::removeConfFile() 183void MainWindow::removeConfFile()
184{ 184{
185 if (!_item) return; 185 if (!_item) return;
186 _item->remove(); 186 _item->remove();
187} 187}
188 188
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
@@ -24,7 +24,7 @@ class ListViewItemConfFile;
24class ListViewConfDir; 24class ListViewConfDir;
25class ListViewItemConf; 25class ListViewItemConf;
26 26
27class MainWindow : public QDialog//QMainWindow 27class MainWindow : public QMainWindow
28{ 28{
29 Q_OBJECT 29 Q_OBJECT
30 30