From 33ebc68a530393697724428f0e0db3a4807f3a9e Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 29 Sep 2002 16:53:10 +0000 Subject: Add the possibility to hide/show the TypeCombo/CategorySelect --- (limited to 'library/fileselector.cpp') diff --git a/library/fileselector.cpp b/library/fileselector.cpp index 382012f..7ff09b4 100644 --- a/library/fileselector.cpp +++ b/library/fileselector.cpp @@ -320,6 +320,7 @@ FileSelector::FileSelector( const QString &f, QWidget *parent, const char *name, this, SLOT( fileClicked( QListViewItem * ) ) ); QHBox *hb = new QHBox( this ); + d->typeCombo = new TypeCombo( hb ); connect( d->typeCombo, SIGNAL(selected(const QString&)), this, SLOT(typeSelected(const QString&)) ); @@ -496,6 +497,25 @@ 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. */ void FileSelector::reread() -- cgit v0.9.0.2