equal
deleted
inserted
replaced
876 } |
876 } |
877 return HbWidget::event(event); |
877 return HbWidget::event(event); |
878 } |
878 } |
879 |
879 |
880 /*! |
880 /*! |
|
881 \reimp |
|
882 */ |
|
883 void HbView::changeEvent(QEvent *event){ |
|
884 |
|
885 // We're listening for layout direction changes, because the screen needs to be |
|
886 // repolished, if the layout direction changes and the titlebar is minimizable. |
|
887 // We have to listen to the event here(and not in the titlebar), cause the layout |
|
888 // direction change event is delivered to the titlebar (cause it does not mirror) |
|
889 if (event->type() == QEvent::LayoutDirectionChange |
|
890 && isVisible() |
|
891 && (viewFlags() & ViewTitleBarMinimizable)){ |
|
892 HbMainWindow *mw = mainWindow(); |
|
893 if (mw && mw->currentView() == this){ |
|
894 HbMainWindowPrivate::d_ptr(mw)->mClippingItem->decoratorVisibilityChanged(); |
|
895 } |
|
896 } |
|
897 |
|
898 HbWidget::changeEvent( event ); |
|
899 } |
|
900 |
|
901 /*! |
881 Removes the menu from the view and returns it to the caller. |
902 Removes the menu from the view and returns it to the caller. |
882 Ownership of the menu is transferred to the caller. |
903 Ownership of the menu is transferred to the caller. |
883 |
904 |
884 \note This function is particularly useful if you want to switch between |
905 \note This function is particularly useful if you want to switch between |
885 different views without deleting the menu. |
906 different views without deleting the menu. |