mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-22 16:54:24 -05:00
Rename subtypeCountLabelStyle to subtypeTallyLabelStyle and fix include ordering
This commit is contained in:
@@ -82,8 +82,8 @@ set(cockatrice_SOURCES
|
||||
src/game_graphics/game_scene.cpp
|
||||
src/game/game_state.cpp
|
||||
src/game_graphics/game_view.cpp
|
||||
src/game/selection_subtype_tally.cpp
|
||||
src/game_graphics/hand_counter.cpp
|
||||
src/game/selection_subtype_tally.cpp
|
||||
src/game_graphics/log/message_log_widget.cpp
|
||||
src/game/phase.cpp
|
||||
src/game_graphics/phases_toolbar.cpp
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
#include "../client/settings/cache_settings.h"
|
||||
#include "game_scene.h"
|
||||
#include "libcockatrice/utility/qt_utils.h"
|
||||
#include "selection_subtype_tally.h"
|
||||
|
||||
#include <QAction>
|
||||
@@ -11,6 +10,7 @@
|
||||
#include <QLayout>
|
||||
#include <QResizeEvent>
|
||||
#include <QRubberBand>
|
||||
#include <libcockatrice/utility/qt_utils.h>
|
||||
|
||||
// QRubberBand calls raise() in showEvent() and changeEvent() to stay on top of siblings.
|
||||
// This subclass disables that behavior so dragCountLabel can appear above it.
|
||||
@@ -68,7 +68,7 @@ GameView::GameView(GameScene *scene, QWidget *parent) : QGraphicsView(scene, par
|
||||
|
||||
const QString dragCountLabelStyle = baseProperties + "font-size: 14px; font-weight: bold;";
|
||||
const QString totalCountLabelStyle = baseProperties + "font-size: 16px; font-weight: bold;";
|
||||
const QString subtypeCountLabelStyle = baseProperties + "font-size: 12px;";
|
||||
const QString subtypeTallyLabelStyle = baseProperties + "font-size: 12px;";
|
||||
|
||||
dragCountLabel = new QLabel(this);
|
||||
dragCountLabel->setStyleSheet(dragCountLabelStyle);
|
||||
@@ -80,7 +80,7 @@ GameView::GameView(GameScene *scene, QWidget *parent) : QGraphicsView(scene, par
|
||||
totalCountLabel->hide();
|
||||
|
||||
subtypeCountContainer = new QWidget(this);
|
||||
subtypeCountContainer->setStyleSheet(subtypeCountLabelStyle);
|
||||
subtypeCountContainer->setStyleSheet(subtypeTallyLabelStyle);
|
||||
subtypeCountLayout = new QGridLayout(subtypeCountContainer);
|
||||
subtypeCountLayout->setContentsMargins(2, 2, 2, 2);
|
||||
subtypeCountLayout->setSpacing(2);
|
||||
|
||||
Reference in New Issue
Block a user