Ignore:
Timestamp:
Jul 24, 2006, 11:11:03 PM (19 years ago)
Author:
dmik
Message:

Widgets: Improved min/max/fullscreen handling:

  • Layout management now works correctly when the window is minimized;
  • Fixed duplicate WindowStateChange events;
  • WindowMinimized, WindowMaximized, WindowFullScreen are mutually exclusive (note: this fetaure is experimental, since it is partly incompatible with the weird non-exclusive Qt behavior on other platforms).
File:
1 edited

Legend:

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

    r57 r102  
    14711471    if (isMinimized()) return;
    14721472
     1473#ifdef Q_WS_PM
     1474    setWindowState(WindowMinimized);
     1475#else
    14731476    setWindowState((windowState() & ~WindowActive) | WindowMinimized);
     1477#endif   
    14741478    show();
    14751479    if (!isTopLevel())
     
    15871591    if (isFullScreen()) return;
    15881592
     1593#ifdef Q_WS_PM
     1594    setWindowState(WindowFullScreen);
     1595#else
    15891596    setWindowState(windowState() | WindowFullScreen);
     1597#endif   
    15901598    show();
    15911599    if (!isTopLevel())
     
    16101618    if (isMaximized()) return;
    16111619
     1620#ifdef Q_WS_PM
     1621    setWindowState(WindowMaximized);
     1622#else
    16121623    setWindowState((windowState() & ~WindowMinimized) | WindowMaximized);
     1624#endif   
    16131625    show();
    16141626    if (!isTopLevel())
Note: See TracChangeset for help on using the changeset viewer.