From b23dc7fb8bc8de6617684249411b5399f1d06631 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 22 May 2009 13:45:49 +0200 Subject: Cleanup. --- src/gui/widgets/qsoftkeystack.cpp | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/gui/widgets/qsoftkeystack.cpp b/src/gui/widgets/qsoftkeystack.cpp index 723b9bf..05fe397 100644 --- a/src/gui/widgets/qsoftkeystack.cpp +++ b/src/gui/widgets/qsoftkeystack.cpp @@ -134,29 +134,7 @@ void QSoftKeyStack::handleFocusChanged(QWidget *old, QWidget *now) actionList.append(menu); actionList.append(contextMenu); softKeyStack->push(actionList); - } - -/* if (!now) - return; - bool nowInOurMainWindow = false; - const QMainWindow *ourMainWindow = qobject_cast(parent()); - Q_ASSERT(ourMainWindow); - - // "ourMainWindow" in parent chain of "now"? Isn't there a helper in Qt for this? - QWidget *nowParent = now; - while (nowParent = nowParent->parentWidget()) { - if (nowParent == ourMainWindow) { - nowInOurMainWindow = true; - break; - } } - - if (!nowInOurMainWindow) - return; - - QList actions = now->actions(); - // Do something with these actions. -*/ } void QSoftKeyStack::handleSoftKeyPress(int command) @@ -190,4 +168,4 @@ void QSoftKeyStackPrivate::handleSoftKeyPress(int command) void QSoftKeyStackPrivate::setNativeSoftKeys() { } -#endif // !defined(Q_WS_S60) \ No newline at end of file +#endif // !defined(Q_WS_S60) -- cgit v0.12