Travis: Revert width=>horizontalAdvance change to fix CI
This commit is contained in:
parent
896d953aa3
commit
dab0845ef1
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue