src/hbcore/gui/hbtoolbutton.cpp
changeset 7 923ff622b8b9
parent 6 c3690ec91ef8
child 21 4633027730f5
child 34 ed14f46c0e55
equal deleted inserted replaced
6:c3690ec91ef8 7:923ff622b8b9
   241 QSizeF HbToolButtonPrivate::getMinimumSize()
   241 QSizeF HbToolButtonPrivate::getMinimumSize()
   242 {
   242 {
   243     Q_Q(HbToolButton);
   243     Q_Q(HbToolButton);
   244     mRepolishRequested = true;
   244     mRepolishRequested = true;
   245     polishPending = false;
   245     polishPending = false;
   246     q->updateGeometry();
       
   247     QSizeF size = q->minimumSize();
       
   248     //Workaround (causing extra polish)
   246     //Workaround (causing extra polish)
   249     mSizeHintPolish = false;
   247     mSizeHintPolish = false;
   250     //workaround ends
   248     //workaround ends
       
   249     q->updateGeometry();
       
   250     QCoreApplication::sendPostedEvents(q, QEvent::LayoutRequest);
       
   251     QSizeF size = q->minimumSize();
   251     return size;
   252     return size;
   252 }
   253 }
   253 
   254 
   254 void HbToolButtonPrivate::_q_actionTriggered()
   255 void HbToolButtonPrivate::_q_actionTriggered()
   255 {
   256 {