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);
|
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
|
QWidget *JsonFieldPage::Field::widget() const
|
||||||
{
|
{
|
||||||
return d->m_widget;
|
return d->m_widget;
|
||||||
|
@@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
#include <utils/pathchooser.h>
|
#include <utils/pathchooser.h>
|
||||||
#include <utils/wizardpage.h>
|
#include <utils/wizardpage.h>
|
||||||
#include <utils/algorithm.h>
|
|
||||||
|
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
@@ -143,11 +142,7 @@ public:
|
|||||||
QVariant value(const QString &key);
|
QVariant value(const QString &key);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Field *jsonField(const QString &name) {
|
Field *jsonField(const QString &name);
|
||||||
return Utils::findOr(m_fields, nullptr, [&name](Field *f) {
|
|
||||||
return f->name() == name;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static QHash<QString, FieldFactory> m_factories;
|
static QHash<QString, FieldFactory> m_factories;
|
||||||
|
Reference in New Issue
Block a user