Travis: Revert width=>horizontalAdvance change to fix CI

This commit is contained in:
Daniel Marjamäki 2019-07-23 10:28:45 +02:00
parent 896d953aa3
commit dab0845ef1
2 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ int CodeEditor::lineNumberAreaWidth()
++digits;
}
int space = 3 + fontMetrics().horizontalAdvance(QLatin1Char('9')) * digits;
int space = 3 + fontMetrics().width(QLatin1Char('9')) * digits;
return space;
}

View File

@ -118,7 +118,7 @@ StyleEditDialog::StyleEditDialog(const CodeEditorStyle& newStyle,
mSampleEditor = new CodeEditor(this);
QFont sampleFont("Monospace");
QFontMetrics fm(sampleFont);
mSampleEditor->setMinimumWidth(fm.horizontalAdvance(QString(40, 'W')));
mSampleEditor->setMinimumWidth(fm.width(QString(40, 'W')));
// designate highlight, errors, and symbols
mSampleEditor->setError(mSampleDocument, mErrLineNum, mErrSymbolsList);
// End Controls