fix: Fixed some compiler warnings (#5028)
* fix(C4101): unreferenced local variable * fix(C4189): variable initialized but not referenced * fix(C4305): narrowing from double to float * fix(C4457): declaration hiding function parameter * fix(C4456): shadowing declaration * fix(C4996): remove deprecations * chore: add changelog entry * fix: Remove more unused variables * fix: removed unused lambda captures * Update changelog entry --------- Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -95,11 +95,13 @@ void Label::paintEvent(QPaintEvent *)
|
||||
QFontMetrics metrics = getFonts()->getFontMetrics(
|
||||
this->getFontStyle(),
|
||||
this->scale() * 96.f /
|
||||
std::max<float>(0.01, this->logicalDpiX() * deviceDpi));
|
||||
std::max<float>(
|
||||
0.01F, static_cast<float>(this->logicalDpiX() * deviceDpi)));
|
||||
painter.setFont(getFonts()->getFont(
|
||||
this->getFontStyle(),
|
||||
this->scale() * 96.f /
|
||||
std::max<float>(0.02, this->logicalDpiX() * deviceDpi)));
|
||||
std::max<float>(
|
||||
0.02F, static_cast<float>(this->logicalDpiX() * deviceDpi))));
|
||||
|
||||
int offset = this->getOffset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user