mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Set preamble tab stop to 4 chars.
This commit is contained in:
parent
2bb9d49527
commit
d1fa6f10e5
@ -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