diff options
Diffstat (limited to 'qtmips_gui/coreview')
-rw-r--r-- | qtmips_gui/coreview/value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_gui/coreview/value.cpp b/qtmips_gui/coreview/value.cpp index 9dbe2e0..7dd1e6a 100644 --- a/qtmips_gui/coreview/value.cpp +++ b/qtmips_gui/coreview/value.cpp @@ -82,7 +82,7 @@ void Value::paint(QPainter *painter, const QStyleOptionGraphicsItem *option __at for (unsigned i = 0; i < wid; i++) { painter->drawText(rect, Qt::AlignCenter, QString(str[i])); // TODO this is probably broken (it is offseted) - rect.setY(rect.y() + HEIGHT + 8); + rect.translate(0, HEIGHT); } } else painter->drawText(rect, Qt::AlignCenter, str); |