forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user