From 4ebe2169f4d4cfc22515ff64e9c7237e6a315e4d Mon Sep 17 00:00:00 2001 From: gammasoft71 Date: Tue, 12 May 2020 22:51:18 +0200 Subject: [PATCH] Update Wiggly.h --- Qt.Widgets/Others/Wiggly/src/Wiggly.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Qt.Widgets/Others/Wiggly/src/Wiggly.h b/Qt.Widgets/Others/Wiggly/src/Wiggly.h index 4e14bed..0f6af17 100644 --- a/Qt.Widgets/Others/Wiggly/src/Wiggly.h +++ b/Qt.Widgets/Others/Wiggly/src/Wiggly.h @@ -27,7 +27,7 @@ public slots: protected: void paintEvent(QPaintEvent* event) override { - static const std::vector sins = {0, 38, 71, 92, 100, 92, 71, 38, 0, -38, -71, -92, -100, -92, -71, -38}; + static const std::vector sins = {0, 38, 71, 92, 100, 92, 71, 38, 0, -38, -71, -92, -100, -92, -71, -38}; QFontMetrics metrics(font()); auto pos = QPoint {(event->rect().width() - metrics.horizontalAdvance(text)) / 2, (event->rect().height() + metrics.ascent() - metrics.descent()) / 2}; QPainter painter(this);