summaryrefslogtreecommitdiff
authorzecke <zecke>2005-02-06 11:26:47 (UTC)
committer zecke <zecke>2005-02-06 11:26:47 (UTC)
commite29e3328f35e9d74e48d26b99f0e6e8d6dcdd33a (patch) (side-by-side diff)
tree08f6fb3eccf860ce596d499e0d6cf19fc0b13069
parent27847dffc089bb8c89d09e7f9277c43c7590b8b8 (diff)
downloadopie-e29e3328f35e9d74e48d26b99f0e6e8d6dcdd33a.zip
opie-e29e3328f35e9d74e48d26b99f0e6e8d6dcdd33a.tar.gz
opie-e29e3328f35e9d74e48d26b99f0e6e8d6dcdd33a.tar.bz2
Remove uncommented code as well
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opieui/fileselector/ofiledialog.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/libopie2/opieui/fileselector/ofiledialog.cpp b/libopie2/opieui/fileselector/ofiledialog.cpp
index 92d4271..f2a0c7b 100644
--- a/libopie2/opieui/fileselector/ofiledialog.cpp
+++ b/libopie2/opieui/fileselector/ofiledialog.cpp
@@ -77,58 +77,54 @@ void saveLastDir( const QString& key, const QString& file )
cfg.writeEntry("LastDir", inf.dirPath( true ) );
else
cfg.writeEntry("LastDir", file );
}
};
/**
* This constructs a modal dialog
*
* @param caption The caption of the dialog
* @param wid The parent widget
* @param mode The mode of the OFileSelector @see OFileSelector
* @param selector The selector of the OFileSelector
* @param dirName the dir or resource to start from
* @param fileName a proposed or existing filename
* @param mimetypes The mimeTypes
*/
OFileDialog::OFileDialog(const QString &caption,
QWidget *wid, int mode, int selector,
const QString &dirName,
const QString &fileName,
const QMap<QString,QStringList>& mimetypes )
: QDialog( wid, "OFileDialog", true )
{
- // QVBoxLayout *lay = new QVBoxLayout(this);
- //showMaximized();
QVBoxLayout *lay = new QVBoxLayout(this );
file = new OFileSelector(this , mode, selector,
dirName, fileName,
mimetypes );
lay->addWidget( file );
- //lay->addWidget( file );
- //showFullScreen();
setCaption( caption.isEmpty() ? tr("FileDialog") : caption );
connect(file, SIGNAL(fileSelected(const QString&) ),
this, SLOT(slotFileSelected(const QString&) ) );
connect(file, SIGNAL(ok() ),
this, SLOT(slotSelectorOk()) ) ;
connect(file, SIGNAL(dirSelected(const QString&) ), this, SLOT(slotDirSelected(const QString&) ) );
}
/**
* @returns the mimetype of the selected
* currently it return QString::null
*/
QString OFileDialog::mimetype()const
{
return QString::null;
}
/**
* @return the fileName
*/
QString OFileDialog::fileName()const
{
return file->selectedName();
}