Fixed couple bugs and memory leaks from panels
[situare] / src / ui / mapviewscreen.cpp
index 54517e1..4e9f398 100644 (file)
@@ -71,23 +71,6 @@ MapViewScreen::MapViewScreen(QWidget *parent)
 
 
     QHBoxLayout *mapViewLayout = new QHBoxLayout;
-    //DEBUG
-//    QVBoxLayout *mapControlLayout = new QVBoxLayout;
-//    QWidget *mapControl = new QWidget(this);
-//    mapControl->setLayout(mapControlLayout);
-//    search = new QPushButton("Search", this);
-//    zoomOut = new QPushButton("-", this);
-//    zoomIn = new QPushButton("+", this);
-//    mapControlLayout->addWidget(&latLine);
-//    mapControlLayout->addWidget(&lonLine);
-//    mapControlLayout->addWidget(search);
-//    mapControlLayout->addWidget(zoomIn);
-//    mapControlLayout->addWidget(zoomOut);
-//    mapViewLayout->addWidget(mapControl);
-//    connect(search, SIGNAL(clicked()), this, SLOT(searchMap()));
-//    connect(zoomIn, SIGNAL(clicked()), mapEngine, SLOT(zoomIn()));
-//    connect(zoomOut, SIGNAL(clicked()), mapEngine, SLOT(zoomOut()));
-    //DEBUG
 
     osmLicense = new QLabel(this);
     osmLicense->setAttribute(Qt::WA_TranslucentBackground, true);
@@ -137,7 +120,7 @@ void MapViewScreen::friendsLocationsReady(QList<User *> &friendsList)
 
 void MapViewScreen::drawOsmLicense(int width, int height)
 {
-    qWarning() << __PRETTY_FUNCTION__ << width << "x" << height;
+    qDebug() << __PRETTY_FUNCTION__ << width << "x" << height;
     osmLicense->move(width - osmLicense->fontMetrics().width(OSM_LICENSE) - PANEL_PEEK_AMOUNT,
                      height - osmLicense->fontMetrics().height());
 }