aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nim
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-09-18 04:54:41 +0200
committerhjk <hjk@qt.io>2020-09-24 10:32:26 +0000
commit2cabd2ceb5ffc963acf2a9e2290973d3edde7087 (patch)
tree6e83d7924c698d1510a144ba88b7d5d74f1ee3cb /src/plugins/nim
parent7bba76d0ffd9a063078b1e3ac8df6204f68985e4 (diff)
Utils: Consolidate LayoutBuilder interface a bit
- the var args template for addItems was overkill creating a lot of instantiations. Use a temporary list instead. - allow default constructed LayoutItems to be used for an empty cell, avoiding the use of a QLabel with empty text - add an addRow({...}) overload as convenience shortcut for .startNewRow().addItems({...} - rename startNewRow() to finishRow() Change-Id: I6d49dacbac3d7acf140ca526884ba1ceeeca2e0d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/nim')
-rw-r--r--src/plugins/nim/project/nimbletaskstep.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nim/project/nimbletaskstep.cpp b/src/plugins/nim/project/nimbletaskstep.cpp
index ca119e891d3..baf117479d5 100644
--- a/src/plugins/nim/project/nimbletaskstep.cpp
+++ b/src/plugins/nim/project/nimbletaskstep.cpp
@@ -112,7 +112,7 @@ BuildStepConfigWidget *NimbleTaskStep::createConfigWidget()
LayoutBuilder builder(widget);
builder.addRow(m_taskArgs);
- builder.startNewRow().addItems(tr("Tasks:"), taskList);
+ builder.addRow({tr("Tasks:"), taskList});
auto buildSystem = dynamic_cast<NimbleBuildSystem *>(this->buildSystem());
QTC_ASSERT(buildSystem, return widget);