Changeset View
Changeset View
Standalone View
Standalone View
src/kwindowsystem.h
Show First 20 Lines • Show All 224 Lines • ▼ Show 20 Line(s) | 103 | #endif | |||
---|---|---|---|---|---|
225 | static void setOnActivities(WId win, const QStringList &activities); | 225 | static void setOnActivities(WId win, const QStringList &activities); | ||
226 | 226 | | |||
227 | /** | 227 | /** | ||
228 | * Sets the parent window of @p subwindow to be @p mainwindow. | 228 | * Sets the parent window of @p subwindow to be @p mainwindow. | ||
229 | * This overrides the parent set the usual way as the QWidget parent, | 229 | * This overrides the parent set the usual way as the QWidget parent, | ||
230 | * but only for the window manager - e.g. stacking order and window grouping | 230 | * but only for the window manager - e.g. stacking order and window grouping | ||
231 | * will be affected, but features like automatic deletion of children | 231 | * will be affected, but features like automatic deletion of children | ||
232 | * when the parent is deleted are unaffected and normally use | 232 | * when the parent is deleted are unaffected and normally use | ||
233 | * the QWidget parent. | 233 | * the QWidget parent. | ||
zzag: > and normally use the QWidget parent.
I think this statement is inaccurate. Documentation… | |||||
234 | * | 234 | * | ||
235 | * This function should be used before a dialog is shown for a window | 235 | * This function should be used before a dialog is shown for a window | ||
236 | * that belongs to another application. | 236 | * that belongs to another application. | ||
237 | */ | 237 | */ | ||
238 | static void setMainWindow(QWidget *subwindow, WId mainwindow); | 238 | static void setMainWindow(QWindow *subwindow, WId mainwindow); | ||
239 | | ||||
239 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | 240 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | ||
240 | /** | 241 | /** | ||
242 | * Sets the parent window of @p subwindow to be @p mainwindow. | ||||
243 | * This overrides the parent set the usual way as the QWidget parent, | ||||
244 | * but only for the window manager - e.g. stacking order and window grouping | ||||
245 | * will be affected, but features like automatic deletion of children | ||||
246 | * when the parent is deleted are unaffected and normally use | ||||
247 | * the QWidget parent. | ||||
248 | * | ||||
249 | * This function should be used before a dialog is shown for a window | ||||
250 | * that belongs to another application. | ||||
251 | * @deprecated since 5.62, use setMainWindow(QWindow *). If all you have is a QWidget*, | ||||
252 | * you might need to call setAttribute(Qt::WA_NativeWindow, true); before calling | ||||
253 | * >window()->windowHandle(). | ||||
254 | */ | ||||
255 | KWINDOWSYSTEM_DEPRECATED static void setMainWindow(QWidget *subwindow, WId mainwindow); | ||||
256 | | ||||
257 | /** | ||||
241 | * Returns the WM_TRANSIENT_FOR property for the given window, i.e. the mainwindow | 258 | * Returns the WM_TRANSIENT_FOR property for the given window, i.e. the mainwindow | ||
242 | * for this window. | 259 | * for this window. | ||
243 | * | 260 | * | ||
244 | * @param window the id of the window | 261 | * @param window the id of the window | ||
245 | * @deprecated Use KWindowInfo::transientFor | 262 | * @deprecated Use KWindowInfo::transientFor | ||
246 | */ | 263 | */ | ||
247 | KWINDOWSYSTEM_DEPRECATED static WId transientFor(WId window); | 264 | KWINDOWSYSTEM_DEPRECATED static WId transientFor(WId window); | ||
248 | 265 | | |||
▲ Show 20 Lines • Show All 513 Lines • Show Last 20 Lines |
I think this statement is inaccurate. Documentation needs more love. :-)