equal
deleted
inserted
replaced
1165 { |
1165 { |
1166 Q_D(const HbAbstractButton); |
1166 Q_D(const HbAbstractButton); |
1167 if (d->mRepolishRequested && isVisible()) { |
1167 if (d->mRepolishRequested && isVisible()) { |
1168 d->mRepolishRequested = false; |
1168 d->mRepolishRequested = false; |
1169 // force the polish event in order to get the real size |
1169 // force the polish event in order to get the real size |
1170 QEvent polishEvent(QEvent::Polish); |
1170 if (!d->polished) { |
1171 QCoreApplication::sendEvent(const_cast<HbAbstractButton *>(this), &polishEvent); |
1171 QEvent polishEvent(QEvent::Polish); |
1172 d->mSizeHintPolish = true; |
1172 QCoreApplication::sendEvent(const_cast<HbAbstractButton *>(this), &polishEvent); |
|
1173 d->mSizeHintPolish = true; |
|
1174 } else if (d->repolishOutstanding) { |
|
1175 QCoreApplication::sendPostedEvents(const_cast<HbAbstractButton *>(this), QEvent::Polish); |
|
1176 } |
|
1177 QCoreApplication::sendPostedEvents(const_cast<HbAbstractButton *>(this), QEvent::LayoutRequest); |
1173 } |
1178 } |
1174 return HbWidget::sizeHint(which, constraint); |
1179 return HbWidget::sizeHint(which, constraint); |
1175 } |
1180 } |
1176 |
1181 |
1177 /*! |
1182 /*! |