14 : QComboBox( parent ),
19 this->setAutoFillBackground(
true );
40 this->setCurrentIndex( 0 );
48 this->addItem( option.
text );
50 this->setCurrentIndex( 0 );
56 for (
int i = 0; i < this->
widgetList.size(); i++ )
60 this->setCurrentIndex( i );
66 this->setCurrentIndex( 0 );
71 int ndx = this->currentIndex();
73 return ( ( ndx == -1 ) ? -1
79 : QListWidget( parent ),
82 this->setAutoFillBackground(
true );
102 this->setCurrentRow( 0 );
110 this->addItem( option.
text );
112 this->setCurrentRow( 0 );
118 for (
int i = 0; i < this->
widgetList.size(); i++ )
122 this->setCurrentRow( i );
128 this->setCurrentRow( 0 );
133 int ndx = this->currentRow();
135 for (
int i = 0; i < this->
widgetList.size(); i++ )
137 if ( this->
widgetList[ i ].ID.toInt() == ndx )