[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Thu Dec 16 01:04:05 CET 2004
CVS commit by staikos:
does this help with the label bug?
M +4 -4 kstlabel.cpp 1.52
--- kdeextragear-2/kst/kst/kstlabel.cpp #1.51:1.52
@@ -369,5 +369,5 @@ void KstLabel::draw(QPainter &p, int px,
QSize sz = p.fontMetrics().size(Qt::AlignLeft|Qt::AlignVCenter|Qt::ExpandTabs, strOut, -1, tabWidth);
if (doDraw) {
- p.drawText(int(x), int(y) - sz.height() - fP[i_fp].dy, sz.width(), sz.height(), Qt::AlignLeft|Qt::AlignVCenter|Qt::ExpandTabs, strOut);
+ p.drawText(int(x), int(y) - sz.height() - int(fP[i_fp].dy), sz.width(), sz.height(), Qt::AlignLeft|Qt::AlignVCenter|Qt::ExpandTabs, strOut);
}
x += sz.width();
@@ -461,5 +461,5 @@ void KstLabel::draw(QPainter &p, int px,
QSize sz = p.fontMetrics().size(Qt::AlignLeft|Qt::AlignVCenter|Qt::ExpandTabs, str, -1, tabWidth);
if (doDraw) {
- p.drawText(int(x),int(y) - sz.height() - fP[i_fp].dy, sz.width(), sz.height(), Qt::AlignLeft|Qt::AlignVCenter|Qt::ExpandTabs, str);
+ p.drawText(int(x),int(y) - sz.height() - int(fP[i_fp].dy), sz.width(), sz.height(), Qt::AlignLeft|Qt::AlignVCenter|Qt::ExpandTabs, str);
}
@@ -520,5 +520,5 @@ void KstLabel::draw(QPainter &p, int px,
QSize sz = p.fontMetrics().size(Qt::AlignLeft|Qt::AlignVCenter|Qt::ExpandTabs, strOut, -1, tabWidth);
if (doDraw) {
- p.drawText(int(x), int(y) - sz.height() - fP[i_fp].dy, sz.width(), sz.height(), Qt::AlignLeft|Qt::AlignVCenter|Qt::ExpandTabs, strOut);
+ p.drawText(int(x), int(y) - sz.height() - int(fP[i_fp].dy), sz.width(), sz.height(), Qt::AlignLeft|Qt::AlignVCenter|Qt::ExpandTabs, strOut);
}
x += sz.width();
@@ -548,5 +548,5 @@ void KstLabel::draw(QPainter &p, int px,
QSize sz = p.fontMetrics().size(Qt::AlignLeft|Qt::AlignVCenter|Qt::ExpandTabs, strOut, -1, tabWidth);
if (doDraw) {
- p.drawText(int(x),int(y) - sz.height() - fP[i_fp].dy, sz.width(), sz.height(), Qt::AlignLeft|Qt::AlignVCenter|Qt::ExpandTabs, strOut);
+ p.drawText(int(x),int(y) - sz.height() - int(fP[i_fp].dy), sz.width(), sz.height(), Qt::AlignLeft|Qt::AlignVCenter|Qt::ExpandTabs, strOut);
}
x += sz.width();
More information about the Kst
mailing list