summaryrefslogtreecommitdiff
path: root/quacker/bagdisplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quacker/bagdisplay.cpp')
-rw-r--r--quacker/bagdisplay.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/quacker/bagdisplay.cpp b/quacker/bagdisplay.cpp
index 456ef51..f38854d 100644
--- a/quacker/bagdisplay.cpp
+++ b/quacker/bagdisplay.cpp
@@ -105,7 +105,12 @@ void BagDisplay::showTiles(const Quackle::LongLetterString &tiles)
line += sanitizedQString;
}
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 11, 0))
+ // Kill Qt 5.13 deprecation warning without breaking pre-5.11 builds
+ const int lineWidth = metrics.horizontalAdvance(line);
+#else
const int lineWidth = metrics.width(line);
+#endif
if (lineWidth > maxLineWidth)
maxLineWidth = lineWidth;