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
}
+1 -1
View File
@@ -35,6 +35,6 @@
* QFontMetrics::width() has been deprecatd in favor of QFontMetrics::horizontalAdvance(), but the latter was only
* introduced in 5.11+. This function wraps the latter for 5.11+ and the former for earlier.
*/
int QFontMetricsWidth(const QFontMetrics* fm, const QString& s);
int QFontMetricsWidth(QFontMetrics fm, const QString& s);
#endif // QTVERSIONABSTRACTION_H