mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 01:42:15 -07:00
just realized retranslateUi has wrong order
This commit is contained in:
parent
68eb91cb5a
commit
d2c37f16d5
1 changed files with 9 additions and 9 deletions
|
|
@ -213,6 +213,15 @@ void ZoneViewWidget::retranslateUi()
|
|||
sortByLabel.setText(tr("Sort by"));
|
||||
|
||||
{ // We can't change the strings after they're put into the QComboBox, so this is our workaround
|
||||
int oldIndex = groupBySelector.currentIndex();
|
||||
groupBySelector.clear();
|
||||
groupBySelector.addItem(tr("---"), CardList::NoSort);
|
||||
groupBySelector.addItem(tr("Type"), CardList::SortByType);
|
||||
groupBySelector.addItem(tr("Mana Value"), CardList::SortByManaValue);
|
||||
groupBySelector.setCurrentIndex(oldIndex);
|
||||
}
|
||||
|
||||
{
|
||||
int oldIndex = sortBySelector.currentIndex();
|
||||
sortBySelector.clear();
|
||||
sortBySelector.addItem(tr("---"), CardList::NoSort);
|
||||
|
|
@ -222,15 +231,6 @@ void ZoneViewWidget::retranslateUi()
|
|||
sortBySelector.setCurrentIndex(oldIndex);
|
||||
}
|
||||
|
||||
{
|
||||
int oldIndex = groupBySelector.currentIndex();
|
||||
groupBySelector.clear();
|
||||
groupBySelector.addItem(tr("---"), CardList::NoSort);
|
||||
groupBySelector.addItem(tr("Type"), CardList::SortByType);
|
||||
groupBySelector.addItem(tr("Mana Value"), CardList::SortByManaValue);
|
||||
groupBySelector.setCurrentIndex(oldIndex);
|
||||
}
|
||||
|
||||
shuffleCheckBox.setText(tr("shuffle when closing"));
|
||||
pileViewCheckBox.setText(tr("pile view"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue