src/hbcore/gui/hbview.cpp
changeset 3 11d3954df52a
parent 2 06ff229162e9
child 5 627c4a0fd0e7
--- a/src/hbcore/gui/hbview.cpp	Fri May 14 16:09:54 2010 +0300
+++ b/src/hbcore/gui/hbview.cpp	Thu May 27 13:10:59 2010 +0300
@@ -878,6 +878,27 @@
 }
 
 /*!
+    \reimp
+ */
+void HbView::changeEvent(QEvent *event){
+    
+    // We're listening for layout direction changes, because the screen needs to be
+    // repolished, if the layout direction changes and the titlebar is minimizable.
+    // We have to listen to the event here(and not in the titlebar), cause the layout
+    // direction change event is delivered to the titlebar (cause it does not mirror)
+    if (event->type() == QEvent::LayoutDirectionChange
+        && isVisible()
+        && (viewFlags() & ViewTitleBarMinimizable)){
+        HbMainWindow *mw = mainWindow();        
+        if (mw && mw->currentView() == this){
+            HbMainWindowPrivate::d_ptr(mw)->mClippingItem->decoratorVisibilityChanged();
+        }
+    }
+
+    HbWidget::changeEvent( event );
+}
+
+/*!
 Removes the menu from the view and returns it to the caller.
 Ownership of the menu is transferred to the caller.