]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/CategorizedCombo.cpp
Squash warnings reported by gcc 4.9
[features.git] / src / frontends / qt4 / CategorizedCombo.cpp
index b380a4c56173f1dccd8eab952053670f27807499..b52172d95099fbfed4d1942c2c761556adf71446 100644 (file)
@@ -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);