forked from qt-creator/qt-creator
Remove algorithm.h from jsonfieldpage.h
Change-Id: I15dfae3568030c169785c33e7957ecba3e975b65 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -345,6 +345,13 @@ QVariant JsonFieldPage::value(const QString &key)
|
||||
return w->value(key);
|
||||
}
|
||||
|
||||
JsonFieldPage::Field *JsonFieldPage::jsonField(const QString &name)
|
||||
{
|
||||
return Utils::findOr(m_fields, nullptr, [&name](Field *f) {
|
||||
return f->name() == name;
|
||||
});
|
||||
}
|
||||
|
||||
QWidget *JsonFieldPage::Field::widget() const
|
||||
{
|
||||
return d->m_widget;
|
||||
|
||||
Reference in New Issue
Block a user