Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Hacker <dd0t@users.sourceforge.net>2014-11-10 01:01:46 +0300
committerStefan Hacker <dd0t@users.sourceforge.net>2014-11-10 01:05:30 +0300
commitef6353bf41e2d57d6b83b51ab4c8b2f08dade81d (patch)
treebf28bf8a28e21a5fde374003e68b4e65f9099cef
parent921c073de7b87151682e99bb2a666497ad2f1fe5 (diff)
Fix Qt5 transition regression in AudioEchoWidget.
With Qt 5 default initialized QPens are no longer considered cosmetic. As in the echo analysis widget we relied on that being the case this broke during the transition. This patch creates the pen with an explicit width of zero making it cosmetic which fixes the issue. Fixes #1475
-rw-r--r--src/mumble/AudioStats.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mumble/AudioStats.cpp b/src/mumble/AudioStats.cpp
index 8aeee63d0..6b55d469e 100644
--- a/src/mumble/AudioStats.cpp
+++ b/src/mumble/AudioStats.cpp
@@ -219,7 +219,8 @@ void AudioEchoWidget::paintEvent(QPaintEvent *) {
for (int i = 0; i < 2 * n; i++) {
poly << QPointF(static_cast<float>(i) * xscale, 0.5f + static_cast<float>(w[i]) * yscale);
}
- paint.setPen(QColor::fromRgbF(1.0f, 0.0f, 1.0f));
+
+ paint.setPen(QPen(QBrush(QColor::fromRgbF(1.0f, 0.0f, 1.0f), 0)));
paint.drawPolyline(poly);
}