Coco: beautify the start coco dialog

Increase the default horizontal space and add a spacer between the
controls and the button box

Change-Id: Id6ce9b923b8270947f315cfce36728e71942f8dc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2022-05-18 11:35:13 +02:00
parent f58a25b60a
commit 36872d0ee4

View File

@@ -81,8 +81,10 @@ void CocoPluginPrivate::startCoco()
csmesChoser.setPromptDialogTitle(CocoPlugin::tr("Select a Squish Coco Instrumentation File"));
layout->addRow(CocoPlugin::tr("CSMes:"), &csmesChoser);
QDialogButtonBox buttons(QDialogButtonBox::Cancel | QDialogButtonBox::Open);
layout->addItem(new QSpacerItem(0, 20, QSizePolicy::Expanding, QSizePolicy::MinimumExpanding));
layout->addWidget(&buttons);
dialog.setLayout(layout);
dialog.resize(480, dialog.height());
QObject::connect(&buttons, &QDialogButtonBox::accepted, &dialog, &QDialog::accept);
QObject::connect(&buttons, &QDialogButtonBox::rejected, &dialog, &QDialog::reject);