diff options
author | Janne Anttila <janne.anttila@digia.com> | 2009-10-13 10:12:03 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2009-10-13 10:12:58 (GMT) |
commit | 022fbe63eff2b6ddfba289b92bc52337defcb82f (patch) | |
tree | 74705e1c19bc2236a9f9f6746f0ae51fbd2f4531 /src/gui/kernel/qapplication_s60.cpp | |
parent | 6b8ac349b9a477863a8c8388dcc0658f3284bc54 (diff) | |
download | Qt-022fbe63eff2b6ddfba289b92bc52337defcb82f.zip Qt-022fbe63eff2b6ddfba289b92bc52337defcb82f.tar.gz Qt-022fbe63eff2b6ddfba289b92bc52337defcb82f.tar.bz2 |
Revert "Fixed a few compiler warnings from QtGui for Symbian."
Accidentally used git commit -a when should have used only git commit :(
This reverts commit 9c6e466dc09813dd4a641b2cf385f35ac99346f5.
Diffstat (limited to 'src/gui/kernel/qapplication_s60.cpp')
-rw-r--r-- | src/gui/kernel/qapplication_s60.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp index f1bbcae..6919292 100644 --- a/src/gui/kernel/qapplication_s60.cpp +++ b/src/gui/kernel/qapplication_s60.cpp @@ -929,7 +929,7 @@ TTypeUid::Ptr QSymbianControl::MopSupplyObject(TTypeUid id) return CCoeControl::MopSupplyObject(id); } -void QSymbianControl::setFocusSafely(bool focus, bool resetLastFocused) +void QSymbianControl::setFocusSafely(bool focus) { // The stack hack in here is very unfortunate, but it is the only way to ensure proper // focus in Symbian. If this is not executed, the control which happens to be on @@ -939,19 +939,17 @@ void QSymbianControl::setFocusSafely(bool focus, bool resetLastFocused) S60->appUi()->RemoveFromStack(this); // Symbian doesn't automatically remove focus from the last focused control, so we need to // remember it and clear focus ourselves. - if (resetLastFocused && lastFocusedControl && lastFocusedControl != this) + if (lastFocusedControl && lastFocusedControl != this) lastFocusedControl->SetFocus(false); QT_TRAP_THROWING(S60->appUi()->AddToStackL(this, ECoeStackPriorityDefault + 1, ECoeStackFlagStandard)); // Note the + 1 - if (resetLastFocused) - lastFocusedControl = this; + lastFocusedControl = this; this->SetFocus(true); } else { S60->appUi()->RemoveFromStack(this); QT_TRAP_THROWING(S60->appUi()->AddToStackL(this, ECoeStackPriorityDefault, ECoeStackFlagStandard)); - if (resetLastFocused) - lastFocusedControl = 0; + lastFocusedControl = 0; this->SetFocus(false); } } |