mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
qt3 fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5656 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d7118a8fd7
commit
bc3e15c4c8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user