summary refs log tree commit diff
path: root/src/ui/Painter.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-07-26 13:55:51 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-07-26 18:59:20 +0200
commite8e48305c8322c58cef88bf8c23d7972d941d7f4 (patch)
tree9de982f6740eba9cf7d100971173792933c8ae11 /src/ui/Painter.h
parentRemove QML from format script (it causes too many issues) (diff)
downloadnheko-e8e48305c8322c58cef88bf8c23d7972d941d7f4.tar.xz
Remove version checks for unsupported Qt versions
Diffstat (limited to '')
-rw-r--r--src/ui/Painter.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/ui/Painter.h b/src/ui/Painter.h
index 3353f0c7..9f974116 100644
--- a/src/ui/Painter.h
+++ b/src/ui/Painter.h
@@ -27,12 +27,7 @@ public:
         {
                 QFontMetrics m(fontMetrics());
                 if (textWidth < 0) {
-#if QT_VERSION < QT_VERSION_CHECK(5, 11, 0)
-                        // deprecated in 5.13:
-                        textWidth = m.width(text);
-#else
                         textWidth = m.horizontalAdvance(text);
-#endif
                 }
                 drawText((outerw - x - textWidth), y + m.ascent(), text);
         }