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:
@@ -15,7 +15,6 @@
|
||||
#include <utils/layoutbuilder.h>
|
||||
|
||||
#include <QDialogButtonBox>
|
||||
#include <QFrame>
|
||||
#include <QGridLayout>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
@@ -46,10 +45,6 @@ PerfLoadDialog::PerfLoadDialog(QWidget *parent)
|
||||
m_kitChooser = new ProjectExplorer::KitChooser(this);
|
||||
m_kitChooser->populate();
|
||||
|
||||
auto line = new QFrame(this);
|
||||
line->setFrameShape(QFrame::HLine);
|
||||
line->setFrameShadow(QFrame::Sunken);
|
||||
|
||||
auto buttonBox = new QDialogButtonBox(this);
|
||||
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
||||
|
||||
@@ -62,7 +57,7 @@ PerfLoadDialog::PerfLoadDialog(QWidget *parent)
|
||||
label3, Span(2, m_kitChooser)
|
||||
},
|
||||
st,
|
||||
line,
|
||||
HorizontalRule {},
|
||||
buttonBox
|
||||
}.attachTo(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user