summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -30,18 +30,18 @@
#include <qlineedit.h>
#include "listviewconfdir.h"
#include "listviewitemconf.h"
#include "listviewitemconfigentry.h"
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") );
// setBaseSize( qApp->globalStrut() );
setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));//, sizePolicy().hasHeightForWidth() ) );
mainLayout = new QVBoxLayout( this );
mainLayout->setSpacing( 0 );
mainLayout->setMargin( 0 );
@@ -58,17 +58,17 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) :
mainLayout->addWidget( editor, 1 );
editor->layoutType( ListViewItemConf::File );
makeMenu();
connect(settingList, SIGNAL( pressed(QListViewItem*) ),
this, SLOT(setCurrent(QListViewItem*)));
connect( settingList, SIGNAL( clicked( QListViewItem* ) ),
- this, SLOT( stopTimer( QListViewItem* ) ) );
+ this, SLOT( stopTimer( QListViewItem* ) ) );
connect( editor->LineEditGroup, SIGNAL( textChanged(const QString&) ),
SLOT( groupChanged(const QString&) ) );
connect( editor->LineEditKey, SIGNAL( textChanged(const QString&) ),
SLOT( keyChanged(const QString&) ) );
connect( editor->LineEditValue, SIGNAL( textChanged(const QString&) ),
SLOT( valueChanged(const QString&) ) );
@@ -165,29 +165,29 @@ void MainWindow::valueChanged(const QString &v)
void MainWindow::stopTimer( QListViewItem* )
{
popupTimer->stop();
}
void MainWindow::saveConfFile()
{
- if (!_fileItem) return;
+ if (!_fileItem) return;
_fileItem->save();
}
void MainWindow::revertConfFile()
{
- if (!_item) return;
+ if (!_item) return;
_item->revert();
}
void MainWindow::removeConfFile()
{
- if (!_item) return;
+ if (!_item) return;
_item->remove();
}
void MainWindow::showPopup()
{
qDebug("showPopup");
if (!_item) return;
popupActionRevert->setEnabled(_item->revertable());
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
@@ -19,17 +19,17 @@
#include <qpopupmenu.h>
#include "editwidget.h"
class QPEToolBar;
class ListViewItemConfFile;
class ListViewConfDir;
class ListViewItemConf;
-class MainWindow : public QDialog//QMainWindow
+class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
~MainWindow();