JsonWizard: Remove member that is only ever read

Change-Id: I87529de8fb600dfc08862143f708e445bc18ed47
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-05-19 17:36:16 +02:00
parent ba3ed06443
commit 57e3714db4
2 changed files with 2 additions and 7 deletions

View File

@@ -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,9 +792,6 @@ 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);
}
@@ -839,7 +836,6 @@ bool JsonFieldPage::setup(const QVariant &data)
f->createWidget(this);
m_fields.append(f);
}
return true;
}

View File

@@ -239,7 +239,6 @@ public:
int m_disabledIndex;
mutable int m_savedIndex;
int m_currentIndex;
};
JsonFieldPage(Utils::MacroExpander *expander, QWidget *parent = 0);