forked from qt-creator/qt-creator
Jsonwizard: Modernize JsonFieldPage elements
QTCREATORBUG-17190 is fixed by this since initialization is fixed as a side effect;-) Task-number: QTCREATORBUG-17190 Change-Id: I9d1f81d6cca26fcdd9ba8a49ee66e05607d6cae1 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -304,9 +304,6 @@ void JsonFieldPage::Field::setIsCompleteExpando(const QVariant &v, const QString
|
||||
// LabelFieldData:
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
LabelField::LabelField() : m_wordWrap(false)
|
||||
{ }
|
||||
|
||||
bool LabelField::parseData(const QVariant &data, QString *errorMessage)
|
||||
{
|
||||
if (data.type() != QVariant::Map) {
|
||||
@@ -343,9 +340,6 @@ QWidget *LabelField::createWidget(const QString &displayName, JsonFieldPage *pag
|
||||
// SpacerFieldData:
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
SpacerField::SpacerField() : m_factor(1)
|
||||
{ }
|
||||
|
||||
bool SpacerField::parseData(const QVariant &data, QString *errorMessage)
|
||||
{
|
||||
if (data.isNull())
|
||||
@@ -388,9 +382,6 @@ QWidget *SpacerField::createWidget(const QString &displayName, JsonFieldPage *pa
|
||||
// LineEditFieldData:
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
LineEditField::LineEditField() : m_isModified(false), m_isValidating(false)
|
||||
{ }
|
||||
|
||||
bool LineEditField::parseData(const QVariant &data, QString *errorMessage)
|
||||
{
|
||||
if (data.isNull())
|
||||
@@ -502,9 +493,6 @@ void LineEditField::initializeData(MacroExpander *expander)
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
|
||||
TextEditField::TextEditField() : m_acceptRichText(false)
|
||||
{ }
|
||||
|
||||
bool TextEditField::parseData(const QVariant &data, QString *errorMessage)
|
||||
{
|
||||
if (data.isNull())
|
||||
@@ -570,9 +558,6 @@ void TextEditField::initializeData(MacroExpander *expander)
|
||||
// PathChooserFieldData:
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
PathChooserField::PathChooserField() : m_kind(PathChooser::ExistingDirectory)
|
||||
{ }
|
||||
|
||||
bool PathChooserField::parseData(const QVariant &data, QString *errorMessage)
|
||||
{
|
||||
if (data.isNull())
|
||||
@@ -668,11 +653,6 @@ void PathChooserField::initializeData(MacroExpander *expander)
|
||||
// CheckBoxFieldData:
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
CheckBoxField::CheckBoxField() :
|
||||
m_checkedValue(QLatin1String("0")),
|
||||
m_uncheckedValue(QLatin1String("1"))
|
||||
{ }
|
||||
|
||||
bool CheckBoxField::parseData(const QVariant &data, QString *errorMessage)
|
||||
{
|
||||
if (data.isNull())
|
||||
|
||||
Reference in New Issue
Block a user