Changeset 95 for trunk/src/gui/kernel/qapplication.cpp
- Timestamp:
- Jul 31, 2009, 1:13:57 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qapplication.cpp
r92 r95 127 127 QApplicationPrivate *QApplicationPrivate::self = 0; 128 128 129 #ifndef QT_NO_IM 129 130 QInputContext *QApplicationPrivate::inputContext; 131 #endif 130 132 131 133 bool QApplicationPrivate::quitOnLastWindowClosed = true; … … 2056 2058 focus_widget = focus; 2057 2059 2060 #ifndef QT_NO_IM 2058 2061 if (prev && ((reason != Qt::PopupFocusReason && reason != Qt::MenuBarFocusReason 2059 2062 && prev->testAttribute(Qt::WA_InputMethodEnabled)) … … 2068 2071 } 2069 2072 } 2073 #endif 2070 2074 2071 2075 if(focus_widget) … … 2089 2093 } 2090 2094 if(focus && QApplicationPrivate::focus_widget == focus) { 2095 #ifndef QT_NO_IM 2091 2096 if (focus->testAttribute(Qt::WA_InputMethodEnabled)) { 2092 2097 QInputContext *qic = focus->inputContext(); … … 2094 2099 qic->setFocusWidget( focus_widget ); 2095 2100 } 2101 #endif 2096 2102 QFocusEvent in(QEvent::FocusIn, reason); 2097 2103 QPointer<QWidget> that = focus; … … 4903 4909 void QApplication::setInputContext(QInputContext *inputContext) 4904 4910 { 4911 #ifndef QT_NO_IM 4905 4912 Q_D(QApplication); 4906 4913 Q_UNUSED(d);// only static members being used. … … 4912 4919 delete d->inputContext; 4913 4920 d->inputContext = inputContext; 4921 #endif 4914 4922 } 4915 4923 … … 4921 4929 QInputContext *QApplication::inputContext() const 4922 4930 { 4931 #ifndef QT_NO_IM 4923 4932 Q_D(const QApplication); 4924 4933 Q_UNUSED(d);// only static members being used. … … 4936 4945 #endif 4937 4946 return d->inputContext; 4947 #else 4948 return 0; 4949 #endif 4938 4950 } 4939 4951
Note:
See TracChangeset
for help on using the changeset viewer.