Windows QPA: Add missing parameter to qWarning()
The warning printed when wrapping foreign windows is
missing a parameter. Amends change
f2ef587906
.
Task-number: QTBUG-41186
Change-Id: Iefbd174c1acc42e87fd1a764d96452b1745aa4c0
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
0cec01190f
commit
dbfd7f304c
@ -313,7 +313,7 @@ QPlatformWindow *QWindowsIntegration::createPlatformWindow(QWindow *window) cons
|
||||
if (window->type() == Qt::ForeignWindow) {
|
||||
const HWND hwnd = reinterpret_cast<HWND>(window->winId());
|
||||
if (!IsWindow(hwnd)) {
|
||||
qWarning("Windows QPA: Invalid foreign window ID %p.");
|
||||
qWarning("Windows QPA: Invalid foreign window ID %p.", hwnd);
|
||||
return nullptr;
|
||||
}
|
||||
QWindowsForeignWindow *result = new QWindowsForeignWindow(window, hwnd);
|
||||
|
Loading…
Reference in New Issue
Block a user