diff options
Diffstat (limited to 'pokemodr/PokemodUI.cpp')
-rw-r--r-- | pokemodr/PokemodUI.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pokemodr/PokemodUI.cpp b/pokemodr/PokemodUI.cpp index 8f9bed09..52be0137 100644 --- a/pokemodr/PokemodUI.cpp +++ b/pokemodr/PokemodUI.cpp @@ -202,6 +202,7 @@ void PokemodUI::on_varTypechart_clicked(const QModelIndex& index) { m_index = index; varEffectiveness->setEnabled(true); + boxEffectiveness->setTitle(QString("%1 vs. %2").arg(varTypechart->model()->headerData(index.row(), Qt::Vertical, Qt::DisplayRole).toString()).arg(varTypechart->model()->headerData(index.column(), Qt::Horizontal, Qt::DisplayRole).toString())); varEffectiveness->setValue(varTypechart->model()->data(m_index, Qt::EditRole).value<Fraction>()); } |