summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-04-12 00:10:00 (UTC)
committer harlekin <harlekin>2002-04-12 00:10:00 (UTC)
commit26efd0a7135834626b4e6f275e57e85a97abd34f (patch) (side-by-side diff)
treeb803f31e222d68f6acdfef9a10e6ccae683d4cb9
parenta1615d98bdd7430e0533c0325dfdc39bf6627ab2 (diff)
downloadopie-26efd0a7135834626b4e6f275e57e85a97abd34f.zip
opie-26efd0a7135834626b4e6f275e57e85a97abd34f.tar.gz
opie-26efd0a7135834626b4e6f275e57e85a97abd34f.tar.bz2
take parent size
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofileselector.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie/ofileselector.cc b/libopie/ofileselector.cc
index bc7c6c2..c3a3514 100644
--- a/libopie/ofileselector.cc
+++ b/libopie/ofileselector.cc
@@ -66,32 +66,34 @@ namespace {
for(int i= 0; i < box->count(); i++ ){
qWarning("str T%sT boxT%sT", str.latin1(), box->text(i).latin1() );
if( str == box->text(i ) ){
index= i;
break;
}
}
return index;
}
};
OFileSelector::OFileSelector(QWidget *wid, int mode, int selector, const QString &dirName,
const QString &fileName, const QStringList &mimetypes ) : QWidget( wid )
{
+
+ resize(wid->width(),wid->height());
m_selector = selector;
m_currentDir = dirName;
m_name = fileName;
m_mimetypes = mimetypes;
if( mimetypes.isEmpty() )
m_autoMime = true;
m_mode = mode;
m_shTool = true;
m_shPerm = true;
m_shLne = true;
m_shChooser = true;
m_shYesNo = true;
// for FILESELECTOR only view is interesting
m_location = 0;
m_homeButton = 0;