LayoutBuilder: Rename Id to ID

The Id was only used in the demo. "ID" is Not exactly canonical naming,
but this clashes often with Utils::Id, so mis-spell until we settle on a
proper name.

Change-Id: I6fdf806c41abf224f7422ec6c9263db3eb357190
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2023-05-09 18:22:42 +02:00
parent c2f9f42653
commit 2e7930b56e
3 changed files with 7 additions and 7 deletions

View File

@@ -710,12 +710,12 @@ LayoutItem columnStretch(int column, int stretch)
// Id based setters
LayoutItem id(Id &out)
LayoutItem id(ID &out)
{
return [&out](QObject *target) { out.ob = target; };
}
void setText(Id id, const QString &text)
void setText(ID id, const QString &text)
{
if (auto textEdit = qobject_cast<QTextEdit *>(id.ob))
textEdit->setText(text);