Changeset 184


Ignore:
Timestamp:
Sep 16, 2009, 7:37:03 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Fixed: Initial size of popup windows could be too big, ignoring its Qt size specification (#67).

File:
1 edited

Legend:

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

    r183 r184  
    12031203        WinQueryTaskSizePos(0, 0, &swp);
    12041204
    1205         //update position & initial size of POPUP window
     1205        //update position & initial size of POPUP window
    12061206        const bool wasMoved = q->testAttribute(Qt::WA_Moved);
    12071207        const bool wasResized = q->testAttribute(Qt::WA_Resized);
    12081208        const bool isVisibleOnScreen = !q->testAttribute(Qt::WA_DontShowOnScreen);
    12091209        if (popup && initializeWindow && isVisibleOnScreen) {
    1210             if (!q->testAttribute(Qt::WA_Resized)) {
     1210            if (!) {
    12111211                swp.cx = sw / 2;
    12121212                swp.cy = 4 * sh / 10;
     1213
     1214
     1215
    12131216            }
    12141217            if (!wasMoved) {
    12151218                swp.x = sw / 2 - swp.cx / 2;
    12161219                swp.y = sh / 2 - swp.cy / 2;
     1220
     1221
     1222
     1223
     1224
    12171225            }
    12181226        }
Note: See TracChangeset for help on using the changeset viewer.