git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5656 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-11-17 10:05:24 +00:00
parent d7118a8fd7
commit bc3e15c4c8

View File

@ -12,6 +12,7 @@
#include <qfont.h>
#include <qfontmetrics.h>
#include <qpainter.h>
QColorItem::QColorItem(QColor c, QString const & t)
: color_(c), text_(t)
@ -20,7 +21,7 @@ QColorItem::QColorItem(QColor c, QString const & t)
QFontMetrics metrics(font);
ascent_ = metrics.ascent();
width_ = 40 + metrics.width(t) + 5;
width_ = 40 + metrics.width(t);
height_ = metrics.ascent() + metrics.descent() + 6;
}