Commit ef723274 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Qmake: Use member initialization for GuiAppParameters



Change-Id: Ib438f41eb2e8c376fc1605046f416cd26f3503da
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 1c91bcb2
......@@ -32,12 +32,6 @@
namespace QmakeProjectManager {
namespace Internal {
GuiAppParameters::GuiAppParameters()
: designerForm(true),
isMobileApplication(false)
{
}
GuiAppWizardDialog::GuiAppWizardDialog(const Core::BaseFileWizardFactory *factory,
const QString &templateName,
const QIcon &icon, QWidget *parent,
......@@ -106,10 +100,6 @@ GuiAppParameters GuiAppWizardDialog::parameters() const
rc.isMobileApplication = true;
rc.widgetWidth = 800;
rc.widgetHeight = 480;
} else {
rc.isMobileApplication = false;
rc.widgetWidth = 400;
rc.widgetHeight = 300;
}
return rc;
}
......
......@@ -36,16 +36,15 @@ class FilesPage;
// Additional parameters required besides QtProjectParameters
struct GuiAppParameters
{
GuiAppParameters();
QString className;
QString baseClassName;
QString sourceFileName;
QString headerFileName;
QString formFileName;
int widgetWidth;
int widgetHeight;
bool designerForm;
bool isMobileApplication;
int widgetWidth = 400;
int widgetHeight = 300;
bool designerForm = true;
bool isMobileApplication = false;
};
class GuiAppWizardDialog : public BaseQmakeProjectWizardDialog
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment