Ignore:
Timestamp:
Feb 25, 2010, 4:31:14 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Fixed assertion at #1125 in qwidget.cpp (due to an attempt to re-instantiate QDesktopWidget during application termination).

File:
1 edited

Legend:

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

    r580 r603  
    473473            // flip y coordinate
    474474            QPoint pnt(info->xDrop, info->yDrop);
    475             pnt.setY(QApplication::desktop()->height() - (pnt.y() + 1));
     475            pnt.setY(qt_display_height() - (pnt.y() + 1));
    476476            pnt = widget->mapFromGlobal(pnt);
    477477
     
    688688            // flip y coordinate
    689689            QPoint pnt(info->xDrop, info->yDrop);
    690             pnt.setY(QApplication::desktop()->height() - (pnt.y() + 1));
     690            pnt.setY(qt_display_height() - (pnt.y() + 1));
    691691            pnt = widget->mapFromGlobal(pnt);
    692692            if (dragData->lastDragOverWidget != widget)
Note: See TracChangeset for help on using the changeset viewer.