summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2011-02-14 09:12:21 (GMT)
committeraxis <qt-info@nokia.com>2011-02-14 09:54:35 (GMT)
commit984bc6626c4f290572ac721fd10edda99691306f (patch)
tree1e4616a77d0b0b6dc63ee5021616b8095bbf9dd9
parent46de2eb6aacc862b60cb01cc6a0c5e1775265099 (diff)
downloadQt-984bc6626c4f290572ac721fd10edda99691306f.zip
Qt-984bc6626c4f290572ac721fd10edda99691306f.tar.gz
Qt-984bc6626c4f290572ac721fd10edda99691306f.tar.bz2
Worked around a SC issue in S60 3.x vs 5.0 versions.
Task: QTBUG-16578 RevBy: Gareth Stockwell
-rw-r--r--src/gui/kernel/qwidget_s60.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp
index 1551162..af9ae47 100644
--- a/src/gui/kernel/qwidget_s60.cpp
+++ b/src/gui/kernel/qwidget_s60.cpp
@@ -54,7 +54,6 @@
#ifdef Q_WS_S60
#include <aknappui.h>
-#include <akntoolbar.h>
#include <eikbtgpc.h>
#endif
@@ -64,6 +63,19 @@
// CCoeControl objects until after the CONE event handler has finished running.
Q_DECLARE_METATYPE(WId)
+// Workaround for the fact that S60 SDKs 3.x do not contain the akntoolbar.h
+// header, even though the documentation says that it should be there, and indeed
+// it is present in the library.
+class CAknToolbar : public CAknControl,
+ public MCoeControlObserver,
+ public MCoeControlBackground,
+ public MEikCommandObserver,
+ public MAknFadedComponent
+{
+public:
+ IMPORT_C void SetToolbarVisibility(const TBool visible);
+};
+
QT_BEGIN_NAMESPACE
extern bool qt_nograb();