Designer: Do not default to Qt4 module names in include statements

Fixes: QTCREATORBUG-30751
Change-Id: Ieca6779aa40b55536f0ce07b1803ff7a1a31004c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Christian Kandeler
2024-05-07 10:54:43 +02:00
parent 7eb09ff0b7
commit 4dc56046ee

View File

@@ -103,7 +103,7 @@ bool QtDesignerFormClassCodeGenerator::generateCpp(const FormClassWizardParamete
Utils::writeIncludeFileDirective("QtGui/" + formBaseClass, true, headerStr); Utils::writeIncludeFileDirective("QtGui/" + formBaseClass, true, headerStr);
headerStr << "#endif\n"; headerStr << "#endif\n";
} else { } else {
Utils::writeIncludeFileDirective("QtGui/" + formBaseClass, true, headerStr); Utils::writeIncludeFileDirective("QtWidgets/" + formBaseClass, true, headerStr);
} }
} else { } else {
Utils::writeIncludeFileDirective(formBaseClass, true, headerStr); Utils::writeIncludeFileDirective(formBaseClass, true, headerStr);