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

@@ -202,15 +202,15 @@ QTCREATOR_UTILS_EXPORT LayoutItem windowTitle(const QString &windowTitle);
// "Getters"
class Id
class ID
{
public:
QObject *ob = nullptr;
};
QTCREATOR_UTILS_EXPORT LayoutItem id(Id &out);
QTCREATOR_UTILS_EXPORT LayoutItem id(ID &out);
QTCREATOR_UTILS_EXPORT void setText(Id id, const QString &text);
QTCREATOR_UTILS_EXPORT void setText(ID id, const QString &text);
// "Signals"
@@ -222,7 +222,7 @@ QTCREATOR_UTILS_EXPORT LayoutItem onTextChanged(const std::function<void(const Q
QTCREATOR_UTILS_EXPORT LayoutItem onValueChanged(const std::function<void(int)> &,
QObject *guard = nullptr);
QTCREATOR_UTILS_EXPORT LayoutItem onTextChanged(Id &id, QVariant(*sig)(QObject *));
QTCREATOR_UTILS_EXPORT LayoutItem onTextChanged(ID &id, QVariant(*sig)(QObject *));
// Convenience