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:
hjk
2024-10-08 08:53:10 +02:00
parent 4061d4b1ca
commit ea60709dd9

View File

@@ -388,17 +388,17 @@ AxivionSettingsWidget::AxivionSettingsWidget()
auto addButton = new QPushButton(Tr::tr("Add..."), this);
m_edit = new QPushButton(Tr::tr("Edit..."), this);
m_remove = new QPushButton(Tr::tr("Remove"), this);
Column{
Row{
Form{Tr::tr("Default dashboard server:"), m_dashboardServers, br},
Column {
Row {
Form { Tr::tr("Default dashboard server:"), m_dashboardServers, br },
st,
Column{addButton, m_edit, st, m_remove},
Column { addButton, m_edit, st, m_remove },
},
Space(10),
br,
Row{settings().highlightMarks},
st}
.attachTo(this);
Row {settings().highlightMarks },
st
}.attachTo(this);
connect(addButton, &QPushButton::clicked, this, [this] {
// add an empty item unconditionally