author | zautrix <zautrix> | 2005-02-05 14:31:01 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-05 14:31:01 (UTC) |
commit | 231a90376b096687770b2b029d4a3d2efa232b2e (patch) (side-by-side diff) | |
tree | 609a9b8434fe28eab8ea9a1a7e4441a37be0b246 /microkde/kfiledialog.cpp | |
parent | 7be6218eaf6bd29d4bc09d0bb79bb0dec6da9ae5 (diff) | |
download | kdepimpi-231a90376b096687770b2b029d4a3d2efa232b2e.zip kdepimpi-231a90376b096687770b2b029d4a3d2efa232b2e.tar.gz kdepimpi-231a90376b096687770b2b029d4a3d2efa232b2e.tar.bz2 |
many fixes
-rw-r--r-- | microkde/kfiledialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/microkde/kfiledialog.cpp b/microkde/kfiledialog.cpp index 309f8dc..3f47425 100644 --- a/microkde/kfiledialog.cpp +++ b/microkde/kfiledialog.cpp @@ -11,51 +11,51 @@ QString KFileDialog::getSaveFileName( const QString & fn, const QString & cap , QWidget * par ) { QString retfile = ""; QDialog dia ( par, "input-dialog", true ); QVBoxLayout lay( &dia ); lay.setMargin(7); lay.setSpacing(7); - dia.setCaption( cap ); QString file = fn; if ( file.isEmpty() ) file = QDir::homeDirPath()+"/*"; QFileInfo fi ( file ); OFileSelector o ( &dia,OFileSelector::FileSelector, OFileSelector::Save, fi.dirPath(true), fi.fileName() ); QObject::connect ( &o, SIGNAL( ok() ), &dia, SLOT ( accept () ) ); lay.addWidget( &o); // o.setNewVisible( true ); // o.setNameVisible( true ); dia.showMaximized(); + dia.setCaption( cap ); int res = dia.exec(); if ( res ) retfile = o.selectedName(); return retfile; } QString KFileDialog::getOpenFileName( const QString & fn, const QString & cap, QWidget * par ) { QString retfile = ""; QDialog dia ( par, "input-dialog", true ); // QLineEdit lab ( &dia ); QVBoxLayout lay( &dia ); lay.setMargin(7); lay.setSpacing(7); - dia.setCaption( cap ); QString file = fn; if ( file.isEmpty() ) file = QDir::homeDirPath()+"/*";; QFileInfo fi ( file ); OFileSelector o ( &dia,OFileSelector::FileSelector, OFileSelector::Open, fi.dirPath(true), fi.fileName() ); QObject::connect ( &o, SIGNAL( ok() ), &dia, SLOT ( accept () ) ); lay.addWidget( &o); dia.showMaximized(); + dia.setCaption( cap ); int res = dia.exec(); if ( res ) retfile = o.selectedName(); return retfile; } #else |