src/hbcore/gui/hbcontentwidget.cpp
changeset 5 627c4a0fd0e7
parent 2 06ff229162e9
child 7 923ff622b8b9
--- a/src/hbcore/gui/hbcontentwidget.cpp	Thu May 27 13:10:59 2010 +0300
+++ b/src/hbcore/gui/hbcontentwidget.cpp	Fri Jun 11 13:58:22 2010 +0300
@@ -42,7 +42,7 @@
   \internal
 */
 
-HbContentWidget::HbContentWidget(HbMainWindow *mainWindow,QGraphicsItem *parent /*= 0*/):
+HbContentWidget::HbContentWidget(HbMainWindow *mainWindow, QGraphicsItem *parent /*= 0*/):
     HbStackedWidget(parent),
     mViewSwitchRunning(false),
     mTargetView(0),
@@ -55,15 +55,14 @@
 {
     Q_UNUSED(constraint);
 
-    QSizeF size;    
+    QSizeF size;
 
     switch (which) {
     case Qt::MinimumSize:
         size = QSizeF(0, 0);
         break;
-    
-    case Qt::PreferredSize:
-    {
+
+    case Qt::PreferredSize: {
         HbDeviceProfile profile(HbDeviceProfile::profile(this));
         size = profile.logicalSize();
         if (!size.isValid()) {
@@ -200,7 +199,7 @@
     // 2nd param (hideOld): We still want to see the old view (normally setCurrentWidget would hide it).
     // 3rd param (showNew): The new view is not yet needed (the effect will take care of making it visible).
     setCurrentWidget(mTargetView, false, false);
-    
+
     mHidingView = viewToHide;
     mViewSwitchFlags = flags;
 
@@ -208,7 +207,7 @@
     if (effectTarget) {
         mMainWindow->setInteractive(false); // disable input while the effects are running
         QString event = getEffectEvent("hide", flags, viewToHide, mTargetView);
-        HbEffectInternal::EffectFlags effectFlags = 
+        HbEffectInternal::EffectFlags effectFlags =
             HbEffectInternal::ClearEffectWhenFinished // the effect must not be persistent
             | HbEffectInternal::HideRegItemBeforeClearingEffect; // to prevent unlikely, but possible flicker
         HbEffectInternal::start(viewToHide, effectTarget, effectFlags,