Ignore:
Timestamp:
Jul 28, 2009, 11:08:37 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Started OS/2 versions of QApplication and QWidget.

File:
1 edited

Legend:

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

    r2 r92  
    13461346    if (isWindow() && isVisible() && internalWinId())
    13471347        hide();
    1348 #if defined(Q_WS_WIN) || defined(Q_WS_X11)
     1348#if defined(Q_WS_WIN) || defined(Q_WS_PM) || defined(Q_WS_X11)
    13491349    else if (!internalWinId() && isVisible())
    13501350        qApp->d_func()->sendSyntheticEnterLeave(this);
     
    68186818    // hidden.
    68196819    if (wasVisible) {
    6820 #if defined(Q_WS_WIN) || defined(Q_WS_X11)
     6820#if defined(Q_WS_WIN) || defined(Q_WS_PM) || defined(Q_WS_X11)
    68216821        qApp->d_func()->sendSyntheticEnterLeave(q);
    68226822#endif
     
    69476947            d->show_helper();
    69486948
    6949 #if defined(Q_WS_WIN) || defined(Q_WS_X11)
     6949#if defined(Q_WS_WIN) || defined(Q_WS_PM) || defined(Q_WS_X11)
    69506950            qApp->d_func()->sendSyntheticEnterLeave(this);
    69516951#endif
     
    70627062            }
    70637063        }
    7064 #if defined(Q_WS_WIN) || defined(Q_WS_X11)
     7064#if defined(Q_WS_WIN) || defined(Q_WS_PM) || defined(Q_WS_X11)
    70657065        qApp->d_func()->sendSyntheticEnterLeave(widget);
    70667066#endif
     
    86458645*/
    86468646bool QWidget::winEvent(MSG *message, long *result)
     8647{
     8648    Q_UNUSED(message);
     8649    Q_UNUSED(result);
     8650    return false;
     8651}
     8652
     8653#endif
     8654#if defined(Q_WS_PM)
     8655
     8656/*!
     8657    This special event handler can be reimplemented in a subclass to
     8658    receive native OS/2 Presentation Manager events which are passed in
     8659    the \a message parameter.
     8660
     8661    In your reimplementation of this function, if you want to stop the
     8662    event being handled by Qt, return true and set \a result to the value
     8663    that the window procedure should return. If you return false, this
     8664    native event is passed back to Qt, which translates the event into
     8665    a Qt event and sends it to the widget.
     8666
     8667    \warning This function is not portable.
     8668
     8669    \sa QApplication::pmEventFilter()
     8670*/
     8671bool QWidget::pmEvent(QMSG *message, MRESULT *result)
    86478672{
    86488673    Q_UNUSED(message);
Note: See TracChangeset for help on using the changeset viewer.