underline clips that are linked

This commit is contained in:
itsmattkc
2019-10-17 11:07:36 +11:00
parent 276478c6d0
commit 09b3a1970d
9 changed files with 29 additions and 11 deletions
+3 -3
View File
@@ -20,10 +20,10 @@
#include "qtversionabstraction.h"
int QFontMetricsWidth(const QFontMetrics* fm, const QString& s) {
int QFontMetricsWidth(QFontMetrics fm, const QString& s) {
#if QT_VERSION < QT_VERSION_CHECK(5, 11, 0)
return fm->width(s);
return fm.width(s);
#else
return fm->horizontalAdvance(s);
return fm.horizontalAdvance(s);
#endif
}