Changeset View
Changeset View
Standalone View
Standalone View
src/kstartupinfo.h
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | 73 | public: | |||
---|---|---|---|---|---|
115 | /** | 115 | /** | ||
116 | * Use this function if the application got a request with startup | 116 | * Use this function if the application got a request with startup | ||
117 | * notification from outside (for example, when KUniqueApplication::newInstance() | 117 | * notification from outside (for example, when KUniqueApplication::newInstance() | ||
118 | * is called, or e.g. when khelpcenter opens new URL in its window). | 118 | * is called, or e.g. when khelpcenter opens new URL in its window). | ||
119 | * The window can be either an already existing and visible window, | 119 | * The window can be either an already existing and visible window, | ||
120 | * or a new one, before being shown. Note that this function is usually | 120 | * or a new one, before being shown. Note that this function is usually | ||
121 | * needed only when a window is reused. | 121 | * needed only when a window is reused. | ||
122 | * @deprecated since 5.62, use setNewStartupId(QWindow *) instead | 122 | * @deprecated since 5.62, use setNewStartupId(QWindow *) instead | ||
123 | * Note: if all you have is a QWidget*, you might need to call | ||||
124 | * setAttribute(Qt::WA_NativeWindow, true); before calling window()->windowHandle(). | ||||
123 | */ | 125 | */ | ||
124 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | 126 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | ||
125 | KWINDOWSYSTEM_DEPRECATED static void setNewStartupId(QWidget *window, const QByteArray &startup_id); | 127 | KWINDOWSYSTEM_DEPRECATED static void setNewStartupId(QWidget *window, const QByteArray &startup_id); | ||
126 | #endif | 128 | #endif | ||
127 | 129 | | |||
128 | /** | 130 | /** | ||
129 | * If your application shows temporarily some window during its startup, | 131 | * If your application shows temporarily some window during its startup, | ||
130 | * for example a dialog, and only after closing it shows the main window, | 132 | * for example a dialog, and only after closing it shows the main window, | ||
▲ Show 20 Lines • Show All 630 Lines • Show Last 20 Lines |