API docs: explain how to use KWindowConfig from a dialog constructor.

Qt doesn't make it easy for us to just use QWindow...
wilder
David Faure 8 years ago
parent a69d8e562b
commit 9dd072ae36
  1. 4
      src/gui/kwindowconfig.h

@ -49,6 +49,10 @@ KCONFIGGUI_EXPORT void saveWindowSize(const QWindow *window, KConfigGroup &confi
* Restores the dialog's size from the configuration according to
* the screen size.
*
* If you're calling this from a constructor (for a mainwindow or dialog, for instance)
* you should first call winId() so that a QWindow is created, then you can call windowHandle()
* to pass to this method.
*
* @note the group must be set before calling
*
* @param window The window to restore size.

Loading…
Cancel
Save