mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
8-char tab stops are too big in the preamble editor.
This commit is contained in:
parent
e666b5eced
commit
b4d885ac69
@ -473,6 +473,10 @@ PreambleModule::PreambleModule(QWidget * parent)
|
||||
connect(findButtonPB, SIGNAL(clicked()), this, SLOT(findText()));
|
||||
connect(findLE, SIGNAL(returnPressed()), this, SLOT(findText()));
|
||||
checkFindButton();
|
||||
// https://stackoverflow.com/questions/13027091/how-to-override-tab-width-in-qt
|
||||
const int tabStop = 4;
|
||||
QFontMetrics metrics(preambleTE->currentFont());
|
||||
preambleTE->setTabStopWidth(tabStop * metrics.width(' '));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user