equal
deleted
inserted
replaced
47 mViewSwitchRunning(false), |
47 mViewSwitchRunning(false), |
48 mTargetView(0), |
48 mTargetView(0), |
49 mHidingView(0), |
49 mHidingView(0), |
50 mMainWindow(mainWindow) |
50 mMainWindow(mainWindow) |
51 { |
51 { |
|
52 // Do not defer this, it causes invalidation and updating. |
|
53 setFocusPolicy(Qt::StrongFocus); |
52 } |
54 } |
53 |
55 |
54 QSizeF HbContentWidget::sizeHint(Qt::SizeHint which, const QSizeF &constraint) const |
56 QSizeF HbContentWidget::sizeHint(Qt::SizeHint which, const QSizeF &constraint) const |
55 { |
57 { |
56 Q_UNUSED(constraint); |
58 Q_UNUSED(constraint); |
76 size = QSizeF(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX); |
78 size = QSizeF(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX); |
77 break; |
79 break; |
78 } |
80 } |
79 |
81 |
80 return size; |
82 return size; |
81 } |
|
82 |
|
83 void HbContentWidget::delayedConstruction() |
|
84 { |
|
85 setFocusPolicy(Qt::StrongFocus); |
|
86 } |
83 } |
87 |
84 |
88 void HbContentWidget::setTargetView(HbView *view) |
85 void HbContentWidget::setTargetView(HbView *view) |
89 { |
86 { |
90 mTargetView = view; |
87 mTargetView = view; |