We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04359c9 commit 4ebe216Copy full SHA for 4ebe216
Qt.Widgets/Others/Wiggly/src/Wiggly.h
@@ -27,7 +27,7 @@ public slots:
27
28
protected:
29
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};
+ static const std::vector<int> sins = {0, 38, 71, 92, 100, 92, 71, 38, 0, -38, -71, -92, -100, -92, -71, -38};
31
QFontMetrics metrics(font());
32
auto pos = QPoint {(event->rect().width() - metrics.horizontalAdvance(text)) / 2, (event->rect().height() + metrics.ascent() - metrics.descent()) / 2};
33
QPainter painter(this);
0 commit comments