Changeset 169 for trunk/src


Ignore:
Timestamp:
Sep 8, 2009, 5:29:13 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Fixed the build after disabling the qt3support module: some components still used deprecated Qt3 methods internally.

Location:
trunk/src/gui
Files:
4 edited

Legend:

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

    r143 r169  
    13971397    } else {
    13981398        if (type == QEvent::MouseButtonPress && !isActiveWindow())
    1399             setActiveWindow();
     1399            eWindow();
    14001400
    14011401        gpos = qmsg.ptl;
     
    14801480#ifndef QT_NO_CONTEXTMENU
    14811481            if (type == QEvent::ContextMenu) {
    1482                 QContextMenuEvent e(QContextMenuEvent::Mouse, pos, globalPos, state);
     1482                QContextMenuEvent e(QContextMenuEvent::Mouse, pos, globalPos,
     1483                                    Qt::KeyboardModifiers(state & Qt::KeyboardModifierMask));
    14831484                res = QApplication::sendSpontaneousEvent(target, &e);
    14841485                res = res && e.isAccepted();
     
    15501551#ifndef QT_NO_CONTEXTMENU
    15511552        if (type == QEvent::ContextMenu) {
    1552             QContextMenuEvent e(QContextMenuEvent::Mouse, pos, globalPos, state);
     1553            QContextMenuEvent e(QContextMenuEvent::Mouse, pos, globalPos,
     1554                                Qt::KeyboardModifiers(state & Qt::KeyboardModifierMask));
    15531555            res = QApplication::sendSpontaneousEvent(widget, &e);
    15541556            res = res && e.isAccepted();
  • trunk/src/gui/kernel/qkeymapper_pm.cpp

    r137 r169  
    4545#include "qapplication_p.h"
    4646#include "qevent_p.h"
     47
    4748
    4849#include "qt_os2.h"
  • trunk/src/gui/kernel/qwidget_pm.cpp

    r142 r169  
    15691569                QRect r = QApplication::desktop()->screenGeometry(this);
    15701570                QRect fs(d->frameStrut());
    1571                 r.rLeft() -= fs.left();
    1572                 r.rRight() += fs.right();
    1573                 r.rTop() -= fs.top();
    1574                 r.rBottom() += fs.bottom();
     1571                fs.adjust(-fs.left(), -fs.top(), fs.right(), fs.bottom());
    15751572                fl |= SWP_ZORDER | SWP_MOVE | SWP_SIZE;
    15761573                WinSetWindowPos(fId, HWND_TOP, r.left(),
  • trunk/src/gui/painting/qregion_pm.cpp

    r113 r169  
    160160{
    161161    HRGN region = 0;
    162     QImage image = bitmap.convertToImage();
     162    QImage image = bitmap.oImage();
    163163    const int maxrect = 256;
    164164    RECTL rects[maxrect];
Note: See TracChangeset for help on using the changeset viewer.