Rework to raise navigation app and improve behavior
[apps/poi-yelp.git] / InfoPanelLabel.cpp
index c87e7e5..1dd5dda 100644 (file)
@@ -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())