Clean up debug statements.

This commit is contained in:
Lukas Brübach 2024-12-16 01:35:03 +01:00 committed by ZeldaZach
parent 4c4cfeff12
commit 21e4aa8021
No known key found for this signature in database
2 changed files with 0 additions and 4 deletions

View file

@ -39,7 +39,6 @@ AllZonesCardAmountWidget::AllZonesCardAmountWidget(QWidget *parent,
void AllZonesCardAmountWidget::adjustFontSize(int scalePercentage)
{
qDebug() << scalePercentage;
const int minFontSize = 8; // Minimum font size
const int maxFontSize = 32; // Maximum font size
const int basePercentage = 100; // Scale at 100%

View file

@ -76,7 +76,6 @@ void CardAmountWidget::paintEvent(QPaintEvent *event)
void CardAmountWidget::adjustFontSize(int scalePercentage)
{
qDebug() << scalePercentage;
const int minFontSize = 8; // Minimum font size
const int maxFontSize = 32; // Maximum font size
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);
newFontSize = std::clamp(newFontSize, minFontSize, maxFontSize);
qDebug() << newFontSize;
// Update the font for card count label
QFont cardCountFont = cardCountInZone->font();
cardCountFont.setPointSize(newFontSize);