underline clips that are linked
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user