mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +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(findButtonPB, SIGNAL(clicked()), this, SLOT(findText()));
|
||||||
connect(findLE, SIGNAL(returnPressed()), this, SLOT(findText()));
|
connect(findLE, SIGNAL(returnPressed()), this, SLOT(findText()));
|
||||||
checkFindButton();
|
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