author | zecke <zecke> | 2004-09-19 19:11:07 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-19 19:11:07 (UTC) |
commit | 13fb1f618aef9c51918a72b6fe998aa4f09f2500 (patch) (side-by-side diff) | |
tree | 30834690c490b11406d560181d595fec4e86b279 | |
parent | 4564befecf3df38911d48f216ab216faf93b9c1d (diff) | |
download | opie-13fb1f618aef9c51918a72b6fe998aa4f09f2500.zip opie-13fb1f618aef9c51918a72b6fe998aa4f09f2500.tar.gz opie-13fb1f618aef9c51918a72b6fe998aa4f09f2500.tar.bz2 |
Change the order of arguments on MainWindow c'tor
-rw-r--r-- | noncore/settings/mediummount/mainwindow.cc | 2 | ||||
-rw-r--r-- | noncore/settings/mediummount/mainwindow.h | 2 | ||||
-rw-r--r-- | noncore/settings/mediummount/mediumwidget.cc | 11 |
3 files changed, 5 insertions, 10 deletions
diff --git a/noncore/settings/mediummount/mainwindow.cc b/noncore/settings/mediummount/mainwindow.cc index eec786c..ebe1c94 100644 --- a/noncore/settings/mediummount/mainwindow.cc +++ b/noncore/settings/mediummount/mainwindow.cc @@ -7,25 +7,25 @@ #include <qpe/storage.h> #include "mediumwidget.h" #include "mediumglobal.h" #include "mainwindow.h" using namespace MediumMountSetting; /* TRANSLATOR MediumMountSetting::MainWindow */ -MainWindow::MainWindow( QWidget *parent, const char *name, bool modal, WFlags ) +MainWindow::MainWindow( QWidget *parent, const char *name, WFlags, bool modal ) : QDialog( parent, name, modal, WStyle_ContextHelp ) { setCaption ( tr( "Medium Mount Settings" )); m_lay = new QVBoxLayout( this ); m_tab = new QTabWidget( this ); m_lay->addWidget( m_tab ); init(); diff --git a/noncore/settings/mediummount/mainwindow.h b/noncore/settings/mediummount/mainwindow.h index 9649863..7bcb7f5 100644 --- a/noncore/settings/mediummount/mainwindow.h +++ b/noncore/settings/mediummount/mainwindow.h @@ -6,25 +6,25 @@ #include <qlist.h> #include <qdialog.h> class QVBoxLayout; class QTabWidget; namespace MediumMountSetting { class MediumMountWidget; class MediumGlobalWidget; class MainWindow : public QDialog { Q_OBJECT public: - MainWindow(QWidget *parent = 0, const char *name = 0 , bool modal = FALSE, WFlags = 0); + MainWindow(QWidget *parent = 0, const char *name = 0 , WFlags = 0, bool modal=true); ~MainWindow(); static QString appName() { return QString::fromLatin1("mediummount"); } private slots: void slotGlobalChanged(int ); void slotCheckingChanged(int ); void accept(); void done( int ); private: void init(); QTabWidget *m_tab; QVBoxLayout *m_lay; diff --git a/noncore/settings/mediummount/mediumwidget.cc b/noncore/settings/mediummount/mediumwidget.cc index f39a6ed..ec5b9d5 100644 --- a/noncore/settings/mediummount/mediumwidget.cc +++ b/noncore/settings/mediummount/mediumwidget.cc @@ -22,29 +22,24 @@ using namespace MediumMountSetting; /* TRANSLATOR MediumMountSetting::MediumMountWidget */ MediumMountWidget::MediumMountWidget(const QString &path, const QPixmap &pix, QWidget *parent, const char *name ) : QWidget( parent, name ) { - if(parent == 0){ - resize(QApplication::desktop()->width(), QApplication::desktop()->height() ); - }else{ - resize(parent->width(), parent->height() ); - } m_path = path; initGUI(); m_label->setPixmap(pix ); m_config = 0; readConfig(); } // now we fire up the GUI // if I would know what I'm doing ;) void MediumMountWidget::initGUI() { //main layout @@ -99,45 +94,45 @@ void MediumMountWidget::initGUI() m_checks->addColSpacing(1, 2 ); m_checks->setColStretch(1, -2 ); connect(m_all, SIGNAL(stateChanged(int) ), this, SLOT(slotStateChanged() ) ); m_box->addWidget( m_group ); // label m_lblPath = new QLabel(tr("Limit search to:"), this ); m_box->addWidget( m_lblPath ); - + m_subList = new QComboBox(FALSE,this,"docFolderList"); m_subList->setDuplicatesEnabled(FALSE); m_subList->setEditable(TRUE); m_box->addWidget(m_subList); m_hboxAdd = new QHBox( this ); m_add = new QPushButton(m_hboxAdd ); m_add->setText( tr("Add") ); m_del = new QPushButton(m_hboxAdd); m_del->setText(tr("Remove")); - + connect(m_add, SIGNAL(clicked() ), this, SLOT(slotAdd() ) ); connect(m_del, SIGNAL(clicked() ), this, SLOT(slotRemove() ) ); m_box->addWidget(m_hboxAdd ); m_scan_all_check = new QCheckBox( tr("Scan whole media"), this ); connect(m_scan_all_check,SIGNAL(stateChanged(int)),this,SLOT(slotScanAllChanged(int))); - + m_box->addWidget(m_scan_all_check); m_always = new QCheckBox( tr("Always check this medium"), this ); m_box->addWidget( m_always ); QSpacerItem *item = new QSpacerItem(5, 50, QSizePolicy::Fixed, QSizePolicy::Expanding ); m_box->addItem(item ); } |