Assign the correct type to some variable and fix shadowing cases

This commit is contained in:
spiros
2024-06-22 19:39:59 +03:00
parent 86c4c7647f
commit 94da0612a5
6 changed files with 73 additions and 59 deletions

View File

@@ -1,8 +1,8 @@
#include "custombutton.h"
#include <QFontMetrics>
CustomButton::CustomButton(const QString &text1, const QString &text2, const QString &text3, const QColor &lineColor, QWidget *parent)
: QPushButton(parent), text1(text1), text2(text2), text3(text3), lineColor(lineColor) {
CustomButton::CustomButton(const QString &text1_, const QString &text2_, const QString &text3_, const QColor &lineColor_, QWidget *parent)
: QPushButton(parent), text1(text1_), text2(text2_), text3(text3_), lineColor(lineColor_) {
setMinimumHeight(60);
adjustWidthToFitText();
}