mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 16:44:48 -07:00
Spell Out Entire Counter Names With First Letter Capitalized (#3997)
This commit is contained in:
parent
dc8603596d
commit
2de863f645
5 changed files with 42 additions and 2 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include "pb/command_set_counter.pb.h"
|
||||
#include "player.h"
|
||||
#include "settingscache.h"
|
||||
#include "translatecountername.h"
|
||||
|
||||
#include <QAction>
|
||||
#include <QApplication>
|
||||
|
|
@ -32,7 +33,8 @@ AbstractCounter::AbstractCounter(Player *_player,
|
|||
shortcutActive = false;
|
||||
|
||||
if (player->getLocalOrJudge()) {
|
||||
menu = new TearOffMenu(name);
|
||||
QString displayName = TranslateCounterName::getDisplayName(_name);
|
||||
menu = new TearOffMenu(displayName);
|
||||
aSet = new QAction(this);
|
||||
connect(aSet, SIGNAL(triggered()), this, SLOT(setCounter()));
|
||||
menu->addAction(aSet);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue