Update RingQt - Towards supporting Qt 6 - extensions/ringqt/cpp/src/codeeditor.cpp - Replace width() with horizontalAdvance()
@@ -91,7 +91,7 @@ int CodeEditor::lineNumberAreaWidth()
++digits;
}
- int space = 3 + fontMetrics().width(QLatin1Char('9')) * digits;
+ int space = 3 + fontMetrics().horizontalAdvance(QLatin1Char('9')) * digits;
return space*2;
}
