forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user