-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 @@ -37,4 +37,4 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : - QDialog( parent, name, f ), _currentItem(0), _fileItem(0) -{ + QMainWindow( parent, name, f ), _currentItem(0), _fileItem(0) +{ setCaption( tr("Conf File Editor") ); @@ -65,3 +65,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : connect( settingList, SIGNAL( clicked( QListViewItem* ) ), - this, SLOT( stopTimer( QListViewItem* ) ) ); + this, SLOT( stopTimer( QListViewItem* ) ) ); @@ -172,3 +172,3 @@ void MainWindow::saveConfFile() { - if (!_fileItem) return; + if (!_fileItem) return; _fileItem->save(); @@ -178,3 +178,3 @@ void MainWindow::revertConfFile() { - if (!_item) return; + if (!_item) return; _item->revert(); @@ -184,3 +184,3 @@ void MainWindow::removeConfFile() { - if (!_item) return; + if (!_item) return; _item->remove(); 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 @@ -26,3 +26,3 @@ class ListViewItemConf; -class MainWindow : public QDialog//QMainWindow +class MainWindow : public QMainWindow { |