forked from qt-creator/qt-creator
Axivion: Code cosmetics settings page
Just the code, the layout may need adjustment, too. I find the "far away" Add/Remove/Edit column a bit ugly. Change-Id: I617fc3d3c7b73e4cc92817833b857078681b9603 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -388,17 +388,17 @@ AxivionSettingsWidget::AxivionSettingsWidget()
|
|||||||
auto addButton = new QPushButton(Tr::tr("Add..."), this);
|
auto addButton = new QPushButton(Tr::tr("Add..."), this);
|
||||||
m_edit = new QPushButton(Tr::tr("Edit..."), this);
|
m_edit = new QPushButton(Tr::tr("Edit..."), this);
|
||||||
m_remove = new QPushButton(Tr::tr("Remove"), this);
|
m_remove = new QPushButton(Tr::tr("Remove"), this);
|
||||||
Column{
|
Column {
|
||||||
Row{
|
Row {
|
||||||
Form{Tr::tr("Default dashboard server:"), m_dashboardServers, br},
|
Form { Tr::tr("Default dashboard server:"), m_dashboardServers, br },
|
||||||
st,
|
st,
|
||||||
Column{addButton, m_edit, st, m_remove},
|
Column { addButton, m_edit, st, m_remove },
|
||||||
},
|
},
|
||||||
Space(10),
|
Space(10),
|
||||||
br,
|
br,
|
||||||
Row{settings().highlightMarks},
|
Row {settings().highlightMarks },
|
||||||
st}
|
st
|
||||||
.attachTo(this);
|
}.attachTo(this);
|
||||||
|
|
||||||
connect(addButton, &QPushButton::clicked, this, [this] {
|
connect(addButton, &QPushButton::clicked, this, [this] {
|
||||||
// add an empty item unconditionally
|
// add an empty item unconditionally
|
||||||
|
Reference in New Issue
Block a user