- myHypCombo[ type ]->addItem( txt, QVariant( index ));
- myHypCombo[ type ]->setMaxVisibleItems( qMax( 10, myHypCombo[ type ]->count() ) );
+ if ( isGroup )
+ {
+ int idx = myHypCombo[ type ]->count();
+ myHypCombo[ type ]->addItem( txt.mid( 6 ), QVariant( index ));
+ myHypCombo[ type ]->setItemData( idx, "separator", Qt::AccessibleDescriptionRole );
+ }
+ else
+ {
+ myHypCombo[ type ]->addItem( prefix + txt, QVariant( index ));
+ }
+ //myHypCombo[ type ]->setMaxVisibleItems( qMax( 10, myHypCombo[ type ]->count() ) );