-rw-r--r-- | libopie/ofiledialog.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libopie/ofiledialog.cc b/libopie/ofiledialog.cc index 92b0d0a..164fadd 100644 --- a/libopie/ofiledialog.cc +++ b/libopie/ofiledialog.cc @@ -42,5 +42,6 @@ OFileDialog::OFileDialog(const QString &caption, { + // QVBoxLayout *lay = new QVBoxLayout(this); + //showMaximized(); QVBoxLayout *lay = new QVBoxLayout(this); - - file = new OFileSelector(0 , mode, selector, + file = new OFileSelector(this , mode, selector, dirName, fileName, @@ -48,2 +49,4 @@ OFileDialog::OFileDialog(const QString &caption, lay->addWidget( file ); + + //lay->addWidget( file ); //showFullScreen(); @@ -55,3 +58,4 @@ OFileDialog::OFileDialog(const QString &caption, this, SLOT(slotDirSelected(const QString &) ) ); - showMaximized(); + + file->setYesCancelVisible( false ); // relayout @@ -80,2 +84,3 @@ QString OFileDialog::getOpenFileName(int selector, wid, OFileSelector::OPEN, selector, startDir, file, mimes); + dlg.showMaximized(); if( dlg.exec() ) @@ -95,2 +100,3 @@ QString OFileDialog::getSaveFileName(int selector, wid, OFileSelector::SAVE, selector, startDir, file, mimes); + dlg.showMaximized(); if( dlg.exec() ) |