mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
make sure filtertree stuff translates
The logic types and attribute names were not previously being translated by the tr(...) function.
This commit is contained in:
parent
2b7ea0c983
commit
610f0b6f6f
4 changed files with 20 additions and 11 deletions
|
|
@ -133,7 +133,10 @@ QVariant FilterTreeModel::data(const QModelIndex &index, int role) const
|
|||
case Qt::ToolTipRole:
|
||||
case Qt::StatusTipRole:
|
||||
case Qt::WhatsThisRole:
|
||||
return node->text();
|
||||
if(!node->isLeaf())
|
||||
return tr(node->textCStr());
|
||||
else
|
||||
return node->text();
|
||||
case Qt::CheckStateRole:
|
||||
if (node->isEnabled())
|
||||
return Qt::Checked;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue