Skip to content

Commit

Permalink
Update Wiggly.h
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed May 12, 2020
1 parent 04359c9 commit 4ebe216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Qt.Widgets/Others/Wiggly/src/Wiggly.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<int> 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);
Expand Down

0 comments on commit 4ebe216

Please sign in to comment.