summaryrefslogtreecommitdiff
authorzecke <zecke>2002-09-29 16:53:10 (UTC)
committer zecke <zecke>2002-09-29 16:53:10 (UTC)
commit33ebc68a530393697724428f0e0db3a4807f3a9e (patch) (unidiff)
treef13affe84a0a4fce01c642c18b6b3c3f42d68e6b
parent3e8ee39d31b43f01524670df6cb048efc2194b9a (diff)
downloadopie-33ebc68a530393697724428f0e0db3a4807f3a9e.zip
opie-33ebc68a530393697724428f0e0db3a4807f3a9e.tar.gz
opie-33ebc68a530393697724428f0e0db3a4807f3a9e.tar.bz2
Add the possibility to hide/show the TypeCombo/CategorySelect
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/fileselector.cpp20
-rw-r--r--library/fileselector.h2
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,
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&)),
@@ -497,4 +498,23 @@ void FileSelector::setCloseVisible( bool b )
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*/
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:
55 void setNewVisible( bool b ); 55 void setNewVisible( bool b );
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();
58 int fileCount(); 60 int fileCount();