Commit 57e3714d authored by Tobias Hunger's avatar Tobias Hunger
Browse files

JsonWizard: Remove member that is only ever read



Change-Id: I87529de8fb600dfc08862143f708e445bc18ed47
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent ba3ed064
......@@ -673,7 +673,7 @@ void JsonFieldPage::CheckBoxField::initializeData(MacroExpander *expander)
// --------------------------------------------------------------------
JsonFieldPage::ComboBoxField::ComboBoxField() :
m_index(-1), m_disabledIndex(-1), m_savedIndex(-1), m_currentIndex(-1)
m_index(-1), m_disabledIndex(-1), m_savedIndex(-1)
{ }
QPair<QString, QString> parseComboBoxItem(const QVariant &item, QString *errorMessage)
......@@ -792,10 +792,7 @@ void JsonFieldPage::ComboBoxField::initializeData(MacroExpander *expander)
w->setItems(tmpItems, tmpData);
w->setInsertPolicy(QComboBox::NoInsert);
if (m_currentIndex >= 0)
w->setCurrentIndex(m_currentIndex);
else
w->setCurrentIndex(m_index);
w->setCurrentIndex(m_index);
}
// --------------------------------------------------------------------
......@@ -839,7 +836,6 @@ bool JsonFieldPage::setup(const QVariant &data)
f->createWidget(this);
m_fields.append(f);
}
return true;
}
......
......@@ -239,7 +239,6 @@ public:
int m_disabledIndex;
mutable int m_savedIndex;
int m_currentIndex;
};
JsonFieldPage(Utils::MacroExpander *expander, QWidget *parent = 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment