From 9dd072ae3680a96e52a1704caa843a198cd459dc Mon Sep 17 00:00:00 2001 From: David Faure Date: Fri, 8 Dec 2017 13:05:16 +0100 Subject: API docs: explain how to use KWindowConfig from a dialog constructor. Qt doesn't make it easy for us to just use QWindow... --- src/gui/kwindowconfig.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/gui/kwindowconfig.h b/src/gui/kwindowconfig.h index 49f14f96..7879daba 100644 --- a/src/gui/kwindowconfig.h +++ b/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. -- cgit v1.2.1