Created preliminary text item for OSM license.
authorKaj Wallin <kaj.wallin@ixonos.com>
Wed, 5 May 2010 07:40:11 +0000 (10:40 +0300)
committerKaj Wallin <kaj.wallin@ixonos.com>
Wed, 5 May 2010 07:40:11 +0000 (10:40 +0300)
Reviewed by:

src/ui/mapviewscreen.cpp

index 52e7d78..a4fe962 100644 (file)
@@ -59,6 +59,12 @@ MapViewScreen::MapViewScreen(QWidget *parent)
 //    connect(zoomIn, SIGNAL(clicked()), mapEngine, SLOT(zoomIn()));
 //    connect(zoomOut, SIGNAL(clicked()), mapEngine, SLOT(zoomOut()));
     //DEBUG
+    QLabel *OsmLicense = new QLabel("© OpenStreetMap contributors, CC-BY-SA",this);
+    OsmLicense->setAttribute(Qt::WA_TranslucentBackground, true);
+    OsmLicense->resize(OsmLicense->fontMetrics().width("© OpenStreetMap contributors, CC-BY-SA"),
+                       OsmLicense->fontMetrics().height());
+    mapView->stackUnder(OsmLicense);
+
     mapViewLayout->addWidget(mapView);
     setLayout(mapViewLayout);