Fixed OSM license placing so it is fully visible when friends list
authorKaj Wallin <kaj.wallin@ixonos.com>
Fri, 7 May 2010 09:19:38 +0000 (12:19 +0300)
committerKaj Wallin <kaj.wallin@ixonos.com>
Fri, 7 May 2010 09:19:38 +0000 (12:19 +0300)
panel is closed.

Reviewed by:

src/ui/mapviewscreen.cpp

index 7508e62..a2f2580 100644 (file)
@@ -26,6 +26,7 @@
 #include "infotab.h"
 #include "friendlistpanel.h"
 #include "userpanel.h"
+#include "panelcommon.h"
 
 MapViewScreen::MapViewScreen(QWidget *parent)
    : QWidget(parent)
@@ -128,6 +129,6 @@ void MapViewScreen::friendsLocationsReady(QList<User *> &friendsList)
 void MapViewScreen::drawOsmLicense(int width, int height)
 {
     qWarning() << __PRETTY_FUNCTION__ << width << "x" << height;
-    osmLicense->move(width-osmLicense->fontMetrics().width(OSM_LICENSE),
-                     height-osmLicense->fontMetrics().height());
+    osmLicense->move(width - osmLicense->fontMetrics().width(OSM_LICENSE) - PANEL_PEEK_AMOUNT,
+                     height - osmLicense->fontMetrics().height());
 }