From 1430a9e2b52109f3f57cfa7a9bb2f68e0dda1365 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 1 Mar 2009 20:44:32 -0500 Subject: Made the rest of the widgets use pimpl --- sigmodr/widgets/GameUI.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sigmodr/widgets/GameUI.cpp') 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()); @@ -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()); } -- cgit