26 #include <kcombobox.h>
28 #include <tdelocale.h>
30 #include "filterselectionwidget.h"
32 FilterSelectionWidget::FilterSelectionWidget( TQWidget *parent, const char *name )
33 : TQHBox( parent, name )
35 setSpacing( KDialog::spacingHint() );
37 TQLabel *label = new TQLabel( i18n( "Filter:" ), this, "tde toolbar widget" );
39 mFilterCombo = new KComboBox( this );
40 label->setBuddy( mFilterCombo );
41 connect( mFilterCombo, TQ_SIGNAL( activated( int ) ),
42 this, TQ_SIGNAL( filterActivated( int ) ) );
45 FilterSelectionWidget::~FilterSelectionWidget()
49 int FilterSelectionWidget::currentItem() const
51 return mFilterCombo->currentItem();
54 void FilterSelectionWidget::setCurrentItem( int index )
56 mFilterCombo->setCurrentItem( index );
59 void FilterSelectionWidget::setItems( const TQStringList &names )
61 mFilterCombo->clear();
62 mFilterCombo->insertStringList( names );
65 #include "filterselectionwidget.moc"
|