diff options
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>()); } |
