aboutsummaryrefslogtreecommitdiffstats
path: root/InfoPanelLabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'InfoPanelLabel.cpp')
-rw-r--r--InfoPanelLabel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/InfoPanelLabel.cpp b/InfoPanelLabel.cpp
index c87e7e5..1dd5dda 100644
--- a/InfoPanelLabel.cpp
+++ b/InfoPanelLabel.cpp
@@ -13,7 +13,7 @@ void InfoPanelLabel::Init(int pos, int height, const QString &text, QFont *font)
setFont(*font);
}
setStyleSheet("QLabel { background-color : white; color : #FFFFFF; }");
- setGeometry(QRect(rect.x(), rect.y()+pos, rect.width(), height));
+ setGeometry(QRect(0, pos, rect.width(), height));
/* if text is too big, align left so that we can at least read the beginning : */
if (this->text().length() > 0 && this->fontMetrics().width(this->text()) >= rect.width())