Changeset 95 for trunk/src/gui/kernel/qwidget.cpp
- Timestamp:
- Jul 31, 2009, 1:13:57 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qwidget.cpp
r92 r95 298 298 void QWidget::setInputContext(QInputContext *context) 299 299 { 300 #ifndef QT_NO_IM 300 301 Q_D(QWidget); 301 302 if (!testAttribute(Qt::WA_InputMethodEnabled)) 302 303 return; 303 #ifndef QT_NO_IM304 304 if (d->ic) 305 305 delete d->ic; … … 323 323 void QWidget::resetInputContext() 324 324 { 325 #ifndef QT_NO_IM 325 326 if (!hasFocus()) 326 327 return; 327 #ifndef QT_NO_IM328 328 QInputContext *qic = this->inputContext(); 329 329 if(qic) … … 9822 9822 #endif 9823 9823 case Qt::WA_NativeWindow: { 9824 #ifndef QT_NO_IM 9824 9825 QInputContext *ic = 0; 9825 9826 if (on && !internalWinId() && testAttribute(Qt::WA_InputMethodEnabled) && hasFocus()) { … … 9828 9829 ic->setFocusWidget(0); 9829 9830 } 9831 #endif 9830 9832 if (!qApp->testAttribute(Qt::AA_DontCreateNativeWidgetSiblings) && parentWidget()) 9831 9833 parentWidget()->d_func()->enforceNativeChildren(); 9832 9834 if (on && !internalWinId() && testAttribute(Qt::WA_WState_Created)) 9833 9835 d->createWinId(); 9836 #ifndef QT_NO_IM 9834 9837 if (ic) 9835 9838 ic->setFocusWidget(this); 9839 #endif 9836 9840 break; 9837 9841 } … … 9867 9871 QInputContextPrivate::updateImeStatus(this, true); 9868 9872 #endif 9873 #ifndef QT_NO_IM 9869 9874 QInputContext *ic = d->ic; 9870 9875 if (!ic) { … … 9881 9886 } 9882 9887 } 9888 #endif 9883 9889 break; 9884 9890 }
Note:
See TracChangeset
for help on using the changeset viewer.