Skip to content

Commit 4ebe216

Browse files
committed
Update Wiggly.h
1 parent 04359c9 commit 4ebe216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Qt.Widgets/Others/Wiggly/src/Wiggly.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public slots:
2727

2828
protected:
2929
void paintEvent(QPaintEvent* event) override {
30-
static const std::vector sins = {0, 38, 71, 92, 100, 92, 71, 38, 0, -38, -71, -92, -100, -92, -71, -38};
30+
static const std::vector<int> sins = {0, 38, 71, 92, 100, 92, 71, 38, 0, -38, -71, -92, -100, -92, -71, -38};
3131
QFontMetrics metrics(font());
3232
auto pos = QPoint {(event->rect().width() - metrics.horizontalAdvance(text)) / 2, (event->rect().height() + metrics.ascent() - metrics.descent()) / 2};
3333
QPainter painter(this);

0 commit comments

Comments
 (0)