mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 01:42:15 -07:00
Clean up debug statements.
This commit is contained in:
parent
4c4cfeff12
commit
21e4aa8021
2 changed files with 0 additions and 4 deletions
|
|
@ -39,7 +39,6 @@ AllZonesCardAmountWidget::AllZonesCardAmountWidget(QWidget *parent,
|
||||||
|
|
||||||
void AllZonesCardAmountWidget::adjustFontSize(int scalePercentage)
|
void AllZonesCardAmountWidget::adjustFontSize(int scalePercentage)
|
||||||
{
|
{
|
||||||
qDebug() << scalePercentage;
|
|
||||||
const int minFontSize = 8; // Minimum font size
|
const int minFontSize = 8; // Minimum font size
|
||||||
const int maxFontSize = 32; // Maximum font size
|
const int maxFontSize = 32; // Maximum font size
|
||||||
const int basePercentage = 100; // Scale at 100%
|
const int basePercentage = 100; // Scale at 100%
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,6 @@ void CardAmountWidget::paintEvent(QPaintEvent *event)
|
||||||
|
|
||||||
void CardAmountWidget::adjustFontSize(int scalePercentage)
|
void CardAmountWidget::adjustFontSize(int scalePercentage)
|
||||||
{
|
{
|
||||||
qDebug() << scalePercentage;
|
|
||||||
const int minFontSize = 8; // Minimum font size
|
const int minFontSize = 8; // Minimum font size
|
||||||
const int maxFontSize = 32; // Maximum font size
|
const int maxFontSize = 32; // Maximum font size
|
||||||
const int basePercentage = 100; // Scale at 100%
|
const int basePercentage = 100; // Scale at 100%
|
||||||
|
|
@ -84,8 +83,6 @@ void CardAmountWidget::adjustFontSize(int scalePercentage)
|
||||||
int newFontSize = minFontSize + (scalePercentage - basePercentage) * (maxFontSize - minFontSize) / (250 - 25);
|
int newFontSize = minFontSize + (scalePercentage - basePercentage) * (maxFontSize - minFontSize) / (250 - 25);
|
||||||
newFontSize = std::clamp(newFontSize, minFontSize, maxFontSize);
|
newFontSize = std::clamp(newFontSize, minFontSize, maxFontSize);
|
||||||
|
|
||||||
qDebug() << newFontSize;
|
|
||||||
|
|
||||||
// Update the font for card count label
|
// Update the font for card count label
|
||||||
QFont cardCountFont = cardCountInZone->font();
|
QFont cardCountFont = cardCountInZone->font();
|
||||||
cardCountFont.setPointSize(newFontSize);
|
cardCountFont.setPointSize(newFontSize);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue