Use QFontMetrics::width instead of ::HorizontalAdvance
Although QFontMetrics::width is deprecated, it is required for compatability
with CI builds for older linux distros.
MODIFY
src/codeeditor.cpp
src/codeeditor.cpp
@@ -30,7 +30,7 @@ CodeEditor::CodeEditor(QWidget* parent) : QPlainTextEdit(parent) {
m_font = QFont("Inconsolata", 11);
setFont(m_font);
m_fontTimer.setSingleShot(true);
- setTabStopDistance(QFontMetricsF(m_font).horizontalAdvance(' ') * 4);
+ setTabStopDistance(QFontMetricsF(m_font).width(' ') * 4);
// set event filter for catching scroll events
installEventFilter(this);

MODIFY
src/programviewer.cpp
src/programviewer.cpp
@@ -25,7 +25,7 @@ ProgramViewer::ProgramViewer(QWidget* parent) : QPlainTextEdit(parent) {
setFont(m_font);
m_fontTimer.setSingleShot(true);
- setTabStopDistance(QFontMetricsF(m_font).horizontalAdvance(' ') * 4);
+ setTabStopDistance(QFontMetricsF(m_font).width(' ') * 4);
}
bool ProgramViewer::eventFilter(QObject*, QEvent* event) {

Use QFontMetrics::width instead of ::HorizontalAdvance

Although QFontMetrics::width is deprecated, it is required for compatability
with CI builds for older linux distros.