author | zecke <zecke> | 2002-09-29 16:53:10 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-29 16:53:10 (UTC) |
commit | 33ebc68a530393697724428f0e0db3a4807f3a9e (patch) (side-by-side diff) | |
tree | f13affe84a0a4fce01c642c18b6b3c3f42d68e6b | |
parent | 3e8ee39d31b43f01524670df6cb048efc2194b9a (diff) | |
download | opie-33ebc68a530393697724428f0e0db3a4807f3a9e.zip opie-33ebc68a530393697724428f0e0db3a4807f3a9e.tar.gz opie-33ebc68a530393697724428f0e0db3a4807f3a9e.tar.bz2 |
Add the possibility to hide/show the TypeCombo/CategorySelect
-rw-r--r-- | library/fileselector.cpp | 20 | ||||
-rw-r--r-- | library/fileselector.h | 2 |
2 files changed, 22 insertions, 0 deletions
diff --git a/library/fileselector.cpp b/library/fileselector.cpp index 382012f..7ff09b4 100644 --- a/library/fileselector.cpp +++ b/library/fileselector.cpp @@ -321,4 +321,5 @@ FileSelector::FileSelector( const QString &f, QWidget *parent, const char *name, QHBox *hb = new QHBox( this ); + d->typeCombo = new TypeCombo( hb ); connect( d->typeCombo, SIGNAL(selected(const QString&)), @@ -497,4 +498,23 @@ void FileSelector::setCloseVisible( bool b ) /*! + +*/ +void FileSelector::setTypeComboVisible( bool b ) { + if ( b ) + d->typeCombo->show(); + else + d->typeCombo->hide(); +} +/*! + +*/ +void FileSelector::setCategorySelectVisible( bool b ) { + if ( b ) + d->catSelect->show(); + else + d->catSelect->hide(); +} + +/*! Rereads the list of documents. */ diff --git a/library/fileselector.h b/library/fileselector.h index f1c9eb1..e3ae891 100644 --- a/library/fileselector.h +++ b/library/fileselector.h @@ -55,4 +55,6 @@ public: void setNewVisible( bool b ); void setCloseVisible( bool b ); + void setTypeComboVisible( bool b = TRUE ); + void setCategorySelectVisible( bool b = TRUE ); void reread(); int fileCount(); |