Review Request 122563: [OS X] emulate native window settings restore (size and position)

René J.V. Bertin rjvbertin at
Fri Feb 13 19:19:08 GMT 2015

This is an automatically generated e-mail. To reply, visit:

Review request for KDE Software on Mac OS X and kdelibs.

Repository: kdelibs


OS X applications usually remember the last used screen, size and screen position across restarts, and do not save screen-resolution dependent settings. 

The patch proposed here emulates that behaviour by following the example given in the documentation for `QWidget::saveGeometry`: the current geometry is saved in a key called `geometry`, and position is kept up to date by letting `QEvent::Move` dirty the size setting, as under MS Windows.

I think it's good practice to support previously stored settings when changing a config store, so the code attempts to restore "legacy" settings when the new key is unavailable.


  kdeui/widgets/kmainwindow.cpp 85beacc 



On OS X 10.9.5 with Qt 4.8.6 and kdelibs 4.14.5 (head of the 4.14 branch); tested with systemsettings, kate and kontact.


René J.V. Bertin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kde-core-devel mailing list