diff options
author | axis <qt-info@nokia.com> | 2009-08-12 13:20:08 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-08-12 15:05:52 (GMT) |
commit | ecb4110040218fafaad8717c7c58de1086d3590d (patch) | |
tree | 3d803129114440896ef702c397342e5af77663b6 /src/gui/kernel/qapplication.cpp | |
parent | 9bba7e42a2988967507d536c497c54efc791eb67 (diff) | |
download | Qt-ecb4110040218fafaad8717c7c58de1086d3590d.zip Qt-ecb4110040218fafaad8717c7c58de1086d3590d.tar.gz Qt-ecb4110040218fafaad8717c7c58de1086d3590d.tar.bz2 |
Revised SIP API.
After discussions with Matthias, several things were changed:
- the autoSipOnMouseFocus property was removed and replaced with a
new style hint, SH_RequestSoftwareInputPanel. This means the style
can define when the input panel is launched.
- The code which sends RequestSoftwareInputPanel events was moved
into its own function, and the widgets call that function.
AutoTest: Included and passed
RevBy: mae
Diffstat (limited to 'src/gui/kernel/qapplication.cpp')
-rw-r--r-- | src/gui/kernel/qapplication.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index 5d1ef8c..734ba66 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -453,7 +453,6 @@ bool QApplicationPrivate::animate_tooltip = false; bool QApplicationPrivate::fade_tooltip = false; bool QApplicationPrivate::animate_toolbox = false; bool QApplicationPrivate::widgetCount = false; -bool QApplicationPrivate::auto_sip_on_mouse_focus = false; #if defined(Q_WS_WIN) && !defined(Q_WS_WINCE) bool QApplicationPrivate::inSizeMove = false; #endif @@ -1068,7 +1067,6 @@ QApplication::~QApplication() QApplicationPrivate::animate_tooltip = false; QApplicationPrivate::fade_tooltip = false; QApplicationPrivate::widgetCount = false; - QApplicationPrivate::auto_sip_on_mouse_focus = false; #ifndef QT_NO_STATEMACHINE // trigger unregistering of QStateMachine's GUI types @@ -3460,39 +3458,6 @@ Qt::LayoutDirection QApplication::layoutDirection() return layout_direction; } -/*! - \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 - launch a virtual keyboard on devices which have very few or no keys. - - If the property is set to true, the widget asks for an input panel - on the mouse click which causes the widget to be focused. If the - property is set to false, the user must click a second time before - the widget asks for an input panel. - - \note If the widget is focused by other means than a mouse click, - the next click is will trigger an input panel request, - regardless of the value of this property. - - The default is platform dependent. - - \sa QEvent::RequestSoftwareInputPanel, QInputContext -*/ - -void QApplication::setAutoSipOnMouseFocus(bool enable) -{ - QApplicationPrivate::auto_sip_on_mouse_focus = enable; -} - -bool QApplication::autoSipOnMouseFocus() -{ - return QApplicationPrivate::auto_sip_on_mouse_focus; -} - /*! \obsolete |