mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
GuiDelimiter: Workaround symbols alignment problem #10118
This commit is contained in:
parent
a645d7f4e5
commit
791ef98016
@ -21,8 +21,9 @@
|
|||||||
#include "FontInfo.h"
|
#include "FontInfo.h"
|
||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
|
|
||||||
#include "support/gettext.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstring.h"
|
#include "support/docstring.h"
|
||||||
|
#include "support/gettext.h"
|
||||||
|
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
@ -201,7 +202,16 @@ GuiDelimiter::GuiDelimiter(GuiView & lv)
|
|||||||
lwi->setFont(font);
|
lwi->setFont(font);
|
||||||
lwi->setToolTip(toqstr(delim));
|
lwi->setToolTip(toqstr(delim));
|
||||||
lwi->setSizeHint(item_size);
|
lwi->setSizeHint(item_size);
|
||||||
lwi->setTextAlignment(Qt::AlignTop);
|
switch (ms.fontfamily) {
|
||||||
|
case CMSY_FAMILY:
|
||||||
|
case STMARY_FAMILY:
|
||||||
|
// Hack to work around the broken metrics of these fonts
|
||||||
|
// FIXME: Better fix the fonts or use fonts that are not broken
|
||||||
|
lwi->setTextAlignment(Qt::AlignTop | Qt::AlignHCenter);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
lwi->setTextAlignment(Qt::AlignCenter);
|
||||||
|
}
|
||||||
list_items[ms.unicode] = lwi;
|
list_items[ms.unicode] = lwi;
|
||||||
leftLW->addItem(lwi);
|
leftLW->addItem(lwi);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user