summaryrefslogtreecommitdiff
path: root/library/fileselector.cpp
Unidiff
Diffstat (limited to 'library/fileselector.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/fileselector.cpp20
1 files changed, 20 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
@@ -320,6 +320,7 @@ FileSelector::FileSelector( const QString &f, QWidget *parent, const char *name,
320 this, SLOT( fileClicked( QListViewItem * ) ) ); 320 this, SLOT( fileClicked( QListViewItem * ) ) );
321 321
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 );
324 connect( d->typeCombo, SIGNAL(selected(const QString&)), 325 connect( d->typeCombo, SIGNAL(selected(const QString&)),
325 this, SLOT(typeSelected(const QString&)) ); 326 this, SLOT(typeSelected(const QString&)) );
@@ -496,6 +497,25 @@ void FileSelector::setCloseVisible( bool b )
496} 497}
497 498
498/*! 499/*!
500
501*/
502void FileSelector::setTypeComboVisible( bool b ) {
503 if ( b )
504 d->typeCombo->show();
505 else
506 d->typeCombo->hide();
507}
508/*!
509
510*/
511void 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.
500*/ 520*/
501void FileSelector::reread() 521void FileSelector::reread()