Ignore:
Timestamp:
Jul 31, 2009, 1:13:57 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Added OS/2 stubs for platform-specific parts of all key GUI classes. Non-key classes are temporarily disabled with QT_NO_ defines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qwidget.cpp

    r92 r95  
    298298void QWidget::setInputContext(QInputContext *context)
    299299{
     300#ifndef QT_NO_IM
    300301    Q_D(QWidget);
    301302    if (!testAttribute(Qt::WA_InputMethodEnabled))
    302303        return;
    303 #ifndef QT_NO_IM
    304304    if (d->ic)
    305305        delete d->ic;
     
    323323void QWidget::resetInputContext()
    324324{
     325#ifndef QT_NO_IM
    325326    if (!hasFocus())
    326327        return;
    327 #ifndef QT_NO_IM
    328328    QInputContext *qic = this->inputContext();
    329329    if(qic)
     
    98229822#endif
    98239823    case Qt::WA_NativeWindow: {
     9824#ifndef QT_NO_IM
    98249825        QInputContext *ic = 0;
    98259826        if (on && !internalWinId() && testAttribute(Qt::WA_InputMethodEnabled) && hasFocus()) {
     
    98289829            ic->setFocusWidget(0);
    98299830        }
     9831#endif
    98309832        if (!qApp->testAttribute(Qt::AA_DontCreateNativeWidgetSiblings) && parentWidget())
    98319833            parentWidget()->d_func()->enforceNativeChildren();
    98329834        if (on && !internalWinId() && testAttribute(Qt::WA_WState_Created))
    98339835            d->createWinId();
     9836#ifndef QT_NO_IM
    98349837        if (ic)
    98359838            ic->setFocusWidget(this);
     9839#endif
    98369840        break;
    98379841    }
     
    98679871            QInputContextPrivate::updateImeStatus(this, true);
    98689872#endif
     9873#ifndef QT_NO_IM
    98699874        QInputContext *ic = d->ic;
    98709875        if (!ic) {
     
    98819886            }
    98829887        }
     9888#endif
    98839889        break;
    98849890    }
Note: See TracChangeset for help on using the changeset viewer.