if ( idx != -1 )
{
resetClear();
+ QVariant ident = id( idx );
emit activatedId( id( idx ) );
+ if ( ident.type() == QVariant::Int )
+ emit activatedId( ident.toInt() );
+ else if ( ident.type() == QVariant::String )
+ emit activatedId( ident.toString() );
}
}
}
/*!
- \fn void QtxComboBox::activatedId( int ident )
+ \fn void QtxComboBox::activatedId( QVariant ident )
\brief Emitted when item with identificator \a ident is activated.
\param ident item's identifier
*/
+
+/*!
+ \fn void QtxComboBox::activatedId( int ident )
+ \brief Emitted when item with integer identificator \a ident is activated.
+ \param ident item's identifier
+*/
+
+/*!
+ \fn void QtxComboBox::activatedId( QString ident )
+ \brief Emitted when item with string identificator \a ident is activated.
+ \param ident item's identifier
+*/
signals:
void activatedId( QVariant );
+ void activatedId( int );
+ void activatedId( QString );
private slots:
void onCurrentChanged( int );