forked from qt-creator/qt-creator
Utils: Add "Layouting::HorizontalRule" LayoutItem
We have many horizontal separator lines in the UI, which are each time repetitively created from a QFrame with some flags set. With the .ui inlining, we will have more of these separators coming. This change intoduces a Layouting::HorizontalRule LayoutItem and replaces various existing QFarme separators with it. Change-Id: I60bad89e2a2b777fbd2f9d0cf872af81e41dcfd7 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <projectexplorer/kitchooser.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
|
||||
#include <utils/layoutbuilder.h>
|
||||
#include <utils/pathchooser.h>
|
||||
#include <utils/processinterface.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -258,17 +259,12 @@ AttachCoreDialog::AttachCoreDialog(QWidget *parent)
|
||||
formLayout->addRow(Tr::tr("&Executable or symbol file:"), d->symbolFileName);
|
||||
formLayout->addRow(Tr::tr("Override &start script:"), d->overrideStartScriptFileName);
|
||||
formLayout->addRow(Tr::tr("Override S&ysRoot:"), d->sysRootDirectory);
|
||||
|
||||
auto line = new QFrame(this);
|
||||
line->setFrameShape(QFrame::HLine);
|
||||
line->setFrameShadow(QFrame::Sunken);
|
||||
|
||||
formLayout->addRow(d->buttonBox);
|
||||
|
||||
auto vboxLayout = new QVBoxLayout(this);
|
||||
vboxLayout->addLayout(formLayout);
|
||||
vboxLayout->addStretch();
|
||||
vboxLayout->addWidget(line);
|
||||
vboxLayout->addWidget(Layouting::createHr());
|
||||
vboxLayout->addWidget(d->buttonBox);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user