forked from qt-creator/qt-creator
CMake: Make CMake build configuration widget look more like others
Change-Id: Iaed519d4d7e73d8fe313ba2c9028db702e59d7dc Reviewed-by: Cristian Adam <cristian.adam@gmail.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -39,6 +39,8 @@
|
|||||||
#include <projectexplorer/projectexplorer.h>
|
#include <projectexplorer/projectexplorer.h>
|
||||||
#include <projectexplorer/target.h>
|
#include <projectexplorer/target.h>
|
||||||
|
|
||||||
|
#include <utils/detailswidget.h>
|
||||||
|
|
||||||
#include <QFormLayout>
|
#include <QFormLayout>
|
||||||
|
|
||||||
namespace CMakeProjectManager {
|
namespace CMakeProjectManager {
|
||||||
@@ -46,10 +48,18 @@ namespace Internal {
|
|||||||
|
|
||||||
CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildConfiguration *bc) : m_buildConfiguration(0)
|
CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildConfiguration *bc) : m_buildConfiguration(0)
|
||||||
{
|
{
|
||||||
QFormLayout *fl = new QFormLayout(this);
|
QVBoxLayout *vbox = new QVBoxLayout(this);
|
||||||
fl->setContentsMargins(20, -1, 0, -1);
|
vbox->setMargin(0);
|
||||||
|
Utils::DetailsWidget *container = new Utils::DetailsWidget;
|
||||||
|
container->setState(Utils::DetailsWidget::NoSummary);
|
||||||
|
vbox->addWidget(container);
|
||||||
|
|
||||||
|
QWidget *details = new QWidget(container);
|
||||||
|
container->setWidget(details);
|
||||||
|
|
||||||
|
QFormLayout *fl = new QFormLayout(details);
|
||||||
|
fl->setMargin(0);
|
||||||
fl->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);
|
fl->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);
|
||||||
setLayout(fl);
|
|
||||||
|
|
||||||
QPushButton *runCmakeButton = new QPushButton(tr("Run CMake..."));
|
QPushButton *runCmakeButton = new QPushButton(tr("Run CMake..."));
|
||||||
connect(runCmakeButton, &QAbstractButton::clicked, this, &CMakeBuildSettingsWidget::runCMake);
|
connect(runCmakeButton, &QAbstractButton::clicked, this, &CMakeBuildSettingsWidget::runCMake);
|
||||||
|
Reference in New Issue
Block a user