X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FCategorizedCombo.cpp;h=b52172d95099fbfed4d1942c2c761556adf71446;hb=3830ce46db8b32003728b792e8b7c8e6c6d55561;hp=b380a4c56173f1dccd8eab952053670f27807499;hpb=51b28ba1d83f9e64f555a27235ca71b04da64736;p=features.git diff --git a/src/frontends/qt4/CategorizedCombo.cpp b/src/frontends/qt4/CategorizedCombo.cpp index b380a4c561..b52172d950 100644 --- a/src/frontends/qt4/CategorizedCombo.cpp +++ b/src/frontends/qt4/CategorizedCombo.cpp @@ -245,7 +245,7 @@ void CCItemDelegate::drawCategoryHeader(QPainter * painter, QStyleOptionViewItem QFontMetrics fm(font); int w = fm.width(category); int x = opt.rect.x() + (opt.rect.width() - w) / 2; - int y = opt.rect.y() + 1.5 * fm.ascent(); + int y = opt.rect.y() + 3 * fm.ascent() / 2; int left = x; int right = x + w; painter->drawText(x, y, category);