diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-01 20:44:32 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-01 20:44:32 -0500 |
| commit | 1430a9e2b52109f3f57cfa7a9bb2f68e0dda1365 (patch) | |
| tree | 4e577a25fadedb054e58921a1ced00941d488c90 /sigmodr/widgets/GameUI.cpp | |
| parent | 4ed55e72070115125732f5125d3da8efd09ffb2b (diff) | |
Made the rest of the widgets use pimpl
Diffstat (limited to 'sigmodr/widgets/GameUI.cpp')
| -rw-r--r-- | sigmodr/widgets/GameUI.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sigmodr/widgets/GameUI.cpp b/sigmodr/widgets/GameUI.cpp index ab6153ee..75a6a500 100644 --- a/sigmodr/widgets/GameUI.cpp +++ b/sigmodr/widgets/GameUI.cpp @@ -150,7 +150,6 @@ void GameUI::Private::startScriptChanged(const Script& startScript) void GameUI::Private::typechartChanged(const QModelIndex& index) { - m_changing = true; ui_effectiveness->setEnabled(true); ui_labelTypes->setText(QString("%1 vs. %2").arg(m_game->type(index.row())->name()).arg(m_game->type(index.column())->name())); ui_effectiveness->setValue(ui_typechart->model()->data(index, Qt::EditRole).value<Fraction>()); @@ -158,11 +157,6 @@ void GameUI::Private::typechartChanged(const QModelIndex& index) void GameUI::Private::effectivenessChanged(const Fraction& multiplier) { - if (m_changing) - { - m_changing = false; - return; - } ui_typechart->model()->setData(ui_typechart->currentIndex(), QVariant::fromValue(multiplier), Qt::EditRole); emit(changed()); } |
