--- a/src/hbwidgets/widgets/hbcombobox.cpp Thu May 27 13:10:59 2010 +0300
+++ b/src/hbwidgets/widgets/hbcombobox.cpp Fri Jun 11 13:58:22 2010 +0300
@@ -134,6 +134,7 @@
d->init( );
updatePrimitives( );
setProperty( "state", "normal" );
+ setFlag(QGraphicsItem::ItemSendsScenePositionChanges);
}
/*!
@@ -1043,6 +1044,24 @@
/*!
\reimp
*/
+QVariant HbComboBox::itemChange( GraphicsItemChange change, const QVariant & value )
+{
+ Q_D( HbComboBox );
+ switch( change ) {
+ case QGraphicsItem::ItemScenePositionHasChanged:
+ if( ( d->mDropDown ) && ( d->mDropDown->mList ) && ( d->mDropDown->isVisible( ) ) ) {
+ d->positionDropDown( );
+ }
+ break;
+ default:
+ break;
+ }
+ return HbWidget::itemChange( change, value );
+}
+
+/*!
+ \reimp
+ */
void HbComboBox::changeEvent( QEvent *event )
{
switch ( event->type( ) ) {
@@ -1055,6 +1074,7 @@
HbWidget::changeEvent( event );
}
+
// End of file