mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-17 04:27:45 -07:00
Rename SubtypeCounter to SubtypeTally
This commit is contained in:
parent
c947808547
commit
ca6cb8fb91
5 changed files with 16 additions and 16 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "../client/settings/cache_settings.h"
|
||||
#include "game_scene.h"
|
||||
#include "selection_subtype_counter.h"
|
||||
#include "selection_subtype_tally.h"
|
||||
|
||||
#include <QAction>
|
||||
#include <QLabel>
|
||||
|
|
@ -172,13 +172,13 @@ void GameView::refreshShortcuts()
|
|||
SettingsCache::instance().shortcuts().getShortcut("Player/aCloseMostRecentZoneView"));
|
||||
}
|
||||
|
||||
QString GameView::buildSubtypeCountText() const
|
||||
QString GameView::buildSubtypeTallyText() const
|
||||
{
|
||||
GameScene *gameScene = dynamic_cast<GameScene *>(scene());
|
||||
if (!gameScene) {
|
||||
return QString();
|
||||
}
|
||||
return SelectionSubtypeCounter::buildSubtypeCountText(gameScene->selectedCards());
|
||||
return SelectionSubtypeTally::buildSubtypeTallyText(gameScene->selectedCards());
|
||||
}
|
||||
|
||||
void GameView::updateSelectionCount(const QSize &viewSize)
|
||||
|
|
@ -208,7 +208,7 @@ void GameView::updateSelectionCount(const QSize &viewSize)
|
|||
return;
|
||||
}
|
||||
|
||||
QString subtypeText = buildSubtypeCountText();
|
||||
QString subtypeText = buildSubtypeTallyText();
|
||||
|
||||
if (subtypeText.isEmpty()) {
|
||||
subtypeCountLabel->hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue