diff options
author | Iain <qt-info@nokia.com> | 2009-05-11 17:37:45 (GMT) |
---|---|---|
committer | Iain <qt-info@nokia.com> | 2009-05-11 17:37:45 (GMT) |
commit | 4592301363ad625e583b76b2f46f616486e5d0d6 (patch) | |
tree | 061d87dcacc338c1f0423fe73bca219ead704b09 /src/gui/kernel | |
parent | dabd8caa4a2faffefbc7f9bb4f233283458c779e (diff) | |
parent | 7aec9035cb0e23eecfdcec9e441092a485ca7f0a (diff) | |
download | Qt-4592301363ad625e583b76b2f46f616486e5d0d6.zip Qt-4592301363ad625e583b76b2f46f616486e5d0d6.tar.gz Qt-4592301363ad625e583b76b2f46f616486e5d0d6.tar.bz2 |
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt-s60-public
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qapplication.cpp | 14 | ||||
-rw-r--r-- | src/gui/kernel/qapplication.h | 16 | ||||
-rw-r--r-- | src/gui/kernel/qapplication_p.h | 2 | ||||
-rw-r--r-- | src/gui/kernel/qclipboard_s60.cpp | 7 | ||||
-rw-r--r-- | src/gui/kernel/qcursor.cpp | 3 | ||||
-rw-r--r-- | src/gui/kernel/qcursor_s60.cpp | 1 | ||||
-rw-r--r-- | src/gui/kernel/qdnd_s60.cpp | 7 | ||||
-rw-r--r-- | src/gui/kernel/qkeymapper_s60.cpp | 3 | ||||
-rw-r--r-- | src/gui/kernel/qsound_s60.cpp | 2 | ||||
-rw-r--r-- | src/gui/kernel/qwidget_p.h | 13 | ||||
-rw-r--r-- | src/gui/kernel/qwidget_s60.cpp | 2 |
11 files changed, 31 insertions, 39 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index 56a65be..1b6bdea 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -135,8 +135,8 @@ bool QApplicationPrivate::quitOnLastWindowClosed = true; #ifdef Q_OS_WINCE int QApplicationPrivate::autoMaximizeThreshold = -1; -bool QApplicationPrivate::autoSipEnabled = false; #endif +bool QApplicationPrivate::autoSipEnabled = false; QApplicationPrivate::QApplicationPrivate(int &argc, char **argv, QApplication::Type type) : QCoreApplicationPrivate(argc, argv) @@ -1234,11 +1234,13 @@ bool QApplication::compressEvent(QEvent *event, QObject *receiver, QPostEventLis \since 4.5 \brief toggles automatic SIP (software input panel) visibility - The auto SIP property is only available as part of Qt for Windows CE. - Set this property to true to automatically display the SIP when entering widgets that accept keyboard input. This property only affects widgets with - the WA_InputMethodEnabled attribute set. + the WA_InputMethodEnabled attribute set, and is typically used to launch + a virtual keyboard on devices which have very few or no keys. + + The property only has an effect on platforms which use software input + panels, such as Windows CE and Symbian. */ #ifdef Q_OS_WINCE @@ -1251,6 +1253,7 @@ int QApplication::autoMaximizeThreshold() const { return QApplicationPrivate::autoMaximizeThreshold; } +#endif void QApplication::setAutoSipEnabled(const bool enabled) { @@ -1261,7 +1264,6 @@ bool QApplication::autoSipEnabled() const { return QApplicationPrivate::autoSipEnabled; } -#endif #ifndef QT_NO_STYLE_STYLESHEET @@ -3461,6 +3463,8 @@ Qt::LayoutDirection QApplication::layoutDirection() /*! \property autoSipOnMouseFocus + \since 4.6 + \brief toggles SIP (software input panel) launch policy This property holds whether widgets should request a software input panel when it is focused with the mouse. This is typically used to diff --git a/src/gui/kernel/qapplication.h b/src/gui/kernel/qapplication.h index ce8792d..ca0eb98 100644 --- a/src/gui/kernel/qapplication.h +++ b/src/gui/kernel/qapplication.h @@ -61,6 +61,10 @@ QT_BEGIN_HEADER +#if defined(Q_WS_S60) +class TWsEvent; +#endif + QT_BEGIN_NAMESPACE QT_MODULE(Gui) @@ -84,9 +88,6 @@ class QApplicationPrivate; #endif #define qApp (static_cast<QApplication *>(QCoreApplication::instance())) -#if defined(Q_WS_S60) -class TWsEvent; -#endif class Q_GUI_EXPORT QApplication : public QCoreApplication { @@ -110,8 +111,8 @@ class Q_GUI_EXPORT QApplication : public QCoreApplication #endif #ifdef Q_OS_WINCE Q_PROPERTY(int autoMaximizeThreshold READ autoMaximizeThreshold WRITE setAutoMaximizeThreshold) - Q_PROPERTY(bool autoSipEnabled READ autoSipEnabled WRITE setAutoSipEnabled) #endif + Q_PROPERTY(bool autoSipEnabled READ autoSipEnabled WRITE setAutoSipEnabled) public: enum Type { Tty, GuiClient, GuiServer }; @@ -200,9 +201,6 @@ public: static void setKeyboardInputInterval(int); static int keyboardInputInterval(); - static void setAutoSipOnMouseFocus(bool); - static bool autoSipOnMouseFocus(); - #ifndef QT_NO_WHEELEVENT static void setWheelScrollLines(int); static int wheelScrollLines(); @@ -297,9 +295,11 @@ public Q_SLOTS: #ifdef Q_OS_WINCE void setAutoMaximizeThreshold(const int threshold); int autoMaximizeThreshold() const; +#endif void setAutoSipEnabled(const bool enabled); bool autoSipEnabled() const; -#endif + void setAutoSipOnMouseFocus(bool); + bool autoSipOnMouseFocus(); static void closeAllWindows(); static void aboutQt(); diff --git a/src/gui/kernel/qapplication_p.h b/src/gui/kernel/qapplication_p.h index bfc5652..a6fc602 100644 --- a/src/gui/kernel/qapplication_p.h +++ b/src/gui/kernel/qapplication_p.h @@ -221,8 +221,8 @@ public: static void emitLastWindowClosed(); #ifdef Q_OS_WINCE static int autoMaximizeThreshold; - static bool autoSipEnabled; #endif + static bool autoSipEnabled; static QGraphicsSystem *graphicsSystem() #if !defined(Q_WS_QWS) diff --git a/src/gui/kernel/qclipboard_s60.cpp b/src/gui/kernel/qclipboard_s60.cpp index 1ba1dfe..ec595b5 100644 --- a/src/gui/kernel/qclipboard_s60.cpp +++ b/src/gui/kernel/qclipboard_s60.cpp @@ -25,9 +25,6 @@ #include <baclipb.h> QT_BEGIN_NAMESPACE -QT_USE_NAMESPACE - - //### Mime Type mapping to UIDs const TUid KQtCbDataStream = {0x666777}; @@ -246,7 +243,5 @@ void QClipboard::connectNotify( const char * ) void QClipboard::ownerDestroyed() { } - -#endif // QT_NO_CLIPBOARD - QT_END_NAMESPACE +#endif // QT_NO_CLIPBOARD
\ No newline at end of file diff --git a/src/gui/kernel/qcursor.cpp b/src/gui/kernel/qcursor.cpp index ed7e020..c24abc4 100644 --- a/src/gui/kernel/qcursor.cpp +++ b/src/gui/kernel/qcursor.cpp @@ -559,7 +559,6 @@ QCursor::operator QVariant() const { return QVariant(QVariant::Cursor, this); } - +QT_END_NAMESPACE #endif // QT_NO_CURSOR -QT_END_NAMESPACE diff --git a/src/gui/kernel/qcursor_s60.cpp b/src/gui/kernel/qcursor_s60.cpp index 0670b6f..4d3f067 100644 --- a/src/gui/kernel/qcursor_s60.cpp +++ b/src/gui/kernel/qcursor_s60.cpp @@ -14,6 +14,7 @@ #include <qt_s60_p.h> #ifdef QT_NO_CURSOR +QT_BEGIN_NAMESPACE QPoint QCursor::pos() { diff --git a/src/gui/kernel/qdnd_s60.cpp b/src/gui/kernel/qdnd_s60.cpp index 5b888f7..09605be 100644 --- a/src/gui/kernel/qdnd_s60.cpp +++ b/src/gui/kernel/qdnd_s60.cpp @@ -26,8 +26,6 @@ #include <w32std.h> #include <gdi.h> QT_BEGIN_NAMESPACE - -QT_USE_NAMESPACE //### artistic impression of Symbians default DnD cursor ? static QPixmap *defaultPm = 0; @@ -363,8 +361,5 @@ QStringList QDropData::formats_sys() const return QStringList(); } - -#endif // QT_NO_DRAGANDDROP - - QT_END_NAMESPACE +#endif // QT_NO_DRAGANDDROP diff --git a/src/gui/kernel/qkeymapper_s60.cpp b/src/gui/kernel/qkeymapper_s60.cpp index 96dfa03..2919551 100644 --- a/src/gui/kernel/qkeymapper_s60.cpp +++ b/src/gui/kernel/qkeymapper_s60.cpp @@ -14,9 +14,6 @@ QT_BEGIN_NAMESPACE -QT_USE_NAMESPACE - - QKeyMapperPrivate::QKeyMapperPrivate() { fillKeyMap(); diff --git a/src/gui/kernel/qsound_s60.cpp b/src/gui/kernel/qsound_s60.cpp index 3ab5230..2ac7e26 100644 --- a/src/gui/kernel/qsound_s60.cpp +++ b/src/gui/kernel/qsound_s60.cpp @@ -25,8 +25,6 @@ QT_BEGIN_NAMESPACE -QT_USE_NAMESPACE - class QAuServerS60; class QAuBucketS60 : public QAuBucket, public MMdaAudioPlayerCallback diff --git a/src/gui/kernel/qwidget_p.h b/src/gui/kernel/qwidget_p.h index 734e0bd..d5f1b98 100644 --- a/src/gui/kernel/qwidget_p.h +++ b/src/gui/kernel/qwidget_p.h @@ -79,6 +79,13 @@ #include "QtGui/qscreen_qws.h" #endif +#if defined(Q_WS_S60) +class RDrawableWindow; +class CCoeControl; +class CAknTitlePane; +class CAknContextPane; +#endif + QT_BEGIN_NAMESPACE // Extra QWidget data @@ -90,12 +97,6 @@ class QWSManager; #if defined(Q_WS_MAC) class QCoreGraphicsPaintEnginePrivate; #endif -#if defined(Q_WS_S60) -class RDrawableWindow; -class CCoeControl; -class CAknTitlePane; -class CAknContextPane; -#endif class QPaintEngine; class QPixmap; class QWidgetBackingStore; diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp index f424e93..5c3055d 100644 --- a/src/gui/kernel/qwidget_s60.cpp +++ b/src/gui/kernel/qwidget_s60.cpp @@ -973,3 +973,5 @@ void QWidget::activateWindow() rw->SetOrdinalPosition(0); } } + +QT_END_NAMESPACE |