src/hbcore/gui/hbtoolbar.cpp
changeset 5 627c4a0fd0e7
parent 2 06ff229162e9
child 6 c3690ec91ef8
--- a/src/hbcore/gui/hbtoolbar.cpp	Thu May 27 13:10:59 2010 +0300
+++ b/src/hbcore/gui/hbtoolbar.cpp	Fri Jun 11 13:58:22 2010 +0300
@@ -341,6 +341,13 @@
     HbWidget::hideEvent(event);
 }
 
+QRectF HbToolBar::boundingRect() const
+{
+    QRectF orginalRect(HbWidget::boundingRect());
+    orginalRect.setTop(orginalRect.top() + 1.0);
+    return orginalRect;
+}
+
 /*!
     \reimp
  */
@@ -387,4 +394,13 @@
     }
 }
 
+void HbToolBar::polish(HbStyleParameters &params)
+{
+    Q_D(HbToolBar);
+    HbWidget::polish(params);
+    if (d->mDoLayoutPending) {
+        d->doLayout();
+    }
+}
+
 #include "moc_hbtoolbar.cpp"