-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 | |||
@@ -322,2 +322,3 @@ FileSelector::FileSelector( const QString &f, QWidget *parent, const char *name, | |||
322 | QHBox *hb = new QHBox( this ); | 322 | QHBox *hb = new QHBox( this ); |
323 | |||
323 | d->typeCombo = new TypeCombo( hb ); | 324 | d->typeCombo = new TypeCombo( hb ); |
@@ -498,2 +499,21 @@ void FileSelector::setCloseVisible( bool b ) | |||
498 | /*! | 499 | /*! |
500 | |||
501 | */ | ||
502 | void FileSelector::setTypeComboVisible( bool b ) { | ||
503 | if ( b ) | ||
504 | d->typeCombo->show(); | ||
505 | else | ||
506 | d->typeCombo->hide(); | ||
507 | } | ||
508 | /*! | ||
509 | |||
510 | */ | ||
511 | void FileSelector::setCategorySelectVisible( bool b ) { | ||
512 | if ( b ) | ||
513 | d->catSelect->show(); | ||
514 | else | ||
515 | d->catSelect->hide(); | ||
516 | } | ||
517 | |||
518 | /*! | ||
499 | Rereads the list of documents. | 519 | 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 | |||
@@ -56,2 +56,4 @@ public: | |||
56 | void setCloseVisible( bool b ); | 56 | void setCloseVisible( bool b ); |
57 | void setTypeComboVisible( bool b = TRUE ); | ||
58 | void setCategorySelectVisible( bool b = TRUE ); | ||
57 | void reread(); | 59 | void reread(); |