diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-28 01:07:45 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-28 01:07:45 -0500 |
| commit | 0f65eadc328acd2c1b9ca0a76284fecabcbd34d8 (patch) | |
| tree | 50951d22e572e59b20f0e6decad5c4c41e039897 /sigmodr/widgets/GameUI.cpp | |
| parent | f03568a7f9333d4e7ccb20c825a5b05b398bbfec (diff) | |
| download | sigen-0f65eadc328acd2c1b9ca0a76284fecabcbd34d8.tar.gz sigen-0f65eadc328acd2c1b9ca0a76284fecabcbd34d8.tar.xz sigen-0f65eadc328acd2c1b9ca0a76284fecabcbd34d8.zip | |
Fixed up the typechart
Diffstat (limited to 'sigmodr/widgets/GameUI.cpp')
| -rw-r--r-- | sigmodr/widgets/GameUI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sigmodr/widgets/GameUI.cpp b/sigmodr/widgets/GameUI.cpp index 06c52f79..0cf5ce03 100644 --- a/sigmodr/widgets/GameUI.cpp +++ b/sigmodr/widgets/GameUI.cpp @@ -149,7 +149,7 @@ void GameUI::typechartChanged(const QModelIndex& index) m_index = index; m_changingMult = true; ui_effectiveness->setEnabled(true); - ui_labelTypes->setText(QString("%1 vs. %2").arg(ui_typechart->model()->headerData(index.row(), Qt::Vertical, Qt::DisplayRole).toString()).arg(ui_typechart->model()->headerData(index.column(), Qt::Horizontal, Qt::DisplayRole).toString())); + ui_labelTypes->setText(QString("%1 vs. %2").arg(game()->type(index.row())->name()).arg(game()->type(index.column())->name())); ui_effectiveness->setValue(ui_typechart->model()->data(m_index, Qt::EditRole).value<Fraction>()); } |
