|
From: <cn...@us...> - 2024-08-16 02:42:38
|
Revision: 1509
http://sourceforge.net/p/seq/svn/1509
Author: cn187
Date: 2024-08-16 02:42:37 +0000 (Fri, 16 Aug 2024)
Log Message:
-----------
Fix compile error for qt4
Modified Paths:
--------------
showeq/branches/cn187_devel/src/mapcore.cpp
Modified: showeq/branches/cn187_devel/src/mapcore.cpp
===================================================================
--- showeq/branches/cn187_devel/src/mapcore.cpp 2024-08-16 02:23:28 UTC (rev 1508)
+++ showeq/branches/cn187_devel/src/mapcore.cpp 2024-08-16 02:42:37 UTC (rev 1509)
@@ -2344,7 +2344,12 @@
// draw the text
int offset_x = -2;
int offset_y = -2;
+
+#if (QT_VERSION >= QT_VERSION_CHECK(5,11,0))
int ha = fm.horizontalAdvance(currentLoc->name());
+#else
+ int ha = fm.width(currentLoc->name());
+#endif
// if the location label is going to run off the side of the map (and
// thus be cut off), scoot the label to the left enough to show the
// whole thing
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|