src/hbcore/gui/hbscreen.cpp
changeset 34 ed14f46c0e55
parent 7 923ff622b8b9
--- a/src/hbcore/gui/hbscreen.cpp	Mon Oct 04 17:49:30 2010 +0300
+++ b/src/hbcore/gui/hbscreen.cpp	Mon Oct 18 18:23:13 2010 +0300
@@ -152,12 +152,7 @@
     mScreenPolished = true;
     HbWidget::polish(params);
 
-    if (mTb && mDelayedConstructionHandled) {
-        HbToolBarPrivate::d_ptr(mTb)->mDoLayout = true;
-    }
-    if (layout()) {
-        layout()->activate();
-    }
+
     HbMainWindow *w = mainWindow();
     HbMainWindowPrivate::d_ptr(w)->postIdleEvent(HbMainWindowPrivate::IdleOrientationEvent);
 }
@@ -171,7 +166,6 @@
     if (mTb) {
         connect(&HbToolBarPrivate::d_ptr(mTb)->core, SIGNAL(orientationChanged()), this, SLOT(toolBarOrientationChanged()));
         connect(&HbToolBarPrivate::d_ptr(mTb)->core, SIGNAL(visibilityChanged()), this, SLOT(decoratorVisibilityChanged()));
-        HbToolBarPrivate::d_ptr(mTb)->delayedConstruction();
     }
     if (mDock) {
         connect(&HbDockWidgetPrivate::d_ptr(mDock)->core, SIGNAL(visibilityChanged()), this, SLOT(decoratorVisibilityChanged()));
@@ -248,7 +242,6 @@
 {
     if (orientation != mToolBarOrientation) {
         if (mTb) {
-            HbToolBarPrivate::d_ptr(mTb)->mDoLayout = false;
             repolish();
         }
         mToolBarOrientation = orientation;
@@ -263,11 +256,7 @@
             && mScreenOrientation != HbMainWindowPrivate::d_ptr(window)->mOrientation) {
         return;
     }
-    if (mTb) {
-        HbToolBarPrivate::d_ptr(mTb)->mDoLayout = false;
-    }
     repolish();
-    QCoreApplication::sendPostedEvents(this, QEvent::Polish);
 }
 
 void HbScreen::currentViewChanged(HbView *view)