Made a few cosmetic changes
authorPekka Nissinen <pekka.nissinen@ixonos.com>
Fri, 14 May 2010 10:42:10 +0000 (13:42 +0300)
committerPekka Nissinen <pekka.nissinen@ixonos.com>
Fri, 14 May 2010 10:42:10 +0000 (13:42 +0300)
src/engine/engine.cpp
src/facebookservice/facebookauthentication.cpp
src/map/mapengine.cpp
src/map/mapengine.h
src/ui/friendlistitem.cpp
src/ui/friendlistpanel.cpp
src/ui/mainwindow.cpp
src/ui/mapviewscreen.cpp
src/ui/mapviewscreen.h
src/ui/zoombuttonpanel.cpp
src/ui/zoombuttonpanel.h

index 4f69067..2587f0d 100644 (file)
@@ -21,8 +21,8 @@
     USA.
  */
 
-#include "situarecommon.h"
 #include "engine.h"
+#include "situarecommon.h"
 #include "ui/mainwindow.h"
 #include "gps/gpspositioninterface.h"
 
index 2f41d0e..687470e 100644 (file)
@@ -31,9 +31,9 @@
 #include <QMaemo5InformationBox>
 #endif // Q_WS_MAEMO_5
 
-#include "situarecommon.h"
 #include "facebookauthentication.h"
 #include "facebookcommon.h"
+#include "situarecommon.h"
 #include "parser.h"
 
 FacebookAuthentication::FacebookAuthentication(QObject *parent)
index 78e3c87..256f0a2 100644 (file)
@@ -32,6 +32,7 @@
 #include <QRect>
 
 #include "frienditemshandler.h"
+#include "mapcommon.h"
 #include "mapengine.h"
 #include "maptile.h"
 
@@ -315,7 +316,7 @@ QPoint MapEngine::convertLatLonToSceneCoordinate(QPointF latLonCoordinate)
     qreal y = static_cast<qreal>((1.0 - log(tan(latitude * M_PI / 180.0) + 1.0
                                 / cos(latitude * M_PI / 180.0)) / M_PI) / 2.0);
 
-    return QPointF(x*z*TILE_SIZE_X, y*z*TILE_SIZE_Y).toPoint();
+    return QPointF(x * z * TILE_SIZE_X, y * z * TILE_SIZE_Y).toPoint();
 }
 
 void MapEngine::receiveOwnLocation(User *user)
index 84bf50b..e773169 100644 (file)
@@ -27,7 +27,6 @@
 
 #include <QtCore>
 
-#include "mapcommon.h"
 #include "mapfetcher.h"
 #include "mapscene.h"
 #include "maptile.h"
index ee7e8eb..e3e5996 100644 (file)
@@ -123,7 +123,8 @@ FriendListItem::FriendListItem(QWidget *parent)
     m_backgroundMiddleImage.load(":/res/images/list_item_middle.png");
     m_backgroundBottomImage.load(":/res/images/list_item_bottom.png");
 
-    connect(m_findButton, SIGNAL(clicked()), this, SLOT(findButtonClicked()));
+    connect(m_findButton, SIGNAL(clicked()),
+        this, SLOT(findButtonClicked()));
 }
 
 void FriendListItem::setData(User *user)
index 47e4b8e..27e2814 100644 (file)
@@ -83,7 +83,8 @@ void FriendListPanel::friendInfoReceived(QList<User *> &friendList)
     foreach (User *user, friendList) {
         FriendListItem *item = new FriendListItem(m_friendListView);
         item->setData(user);
-        connect(item, SIGNAL(findFriend(QPointF)), this, SIGNAL(findFriend(QPointF)));
+        connect(item, SIGNAL(findFriend(QPointF)),
+            this, SIGNAL(findFriend(QPointF)));
         m_friendListView->addWidget(item);
     }
 }
index 30f917c..6fd9bbb 100644 (file)
@@ -57,8 +57,8 @@ MainWindow::MainWindow(QWidget *parent)
 
     connect(this, SIGNAL(reverseGeoReady(QString)),
             m_locationDialog, SLOT(setAddress(QString)));
-    connect(m_locationDialog, SIGNAL(statusUpdate(QString,bool)),
-            this, SIGNAL(statusUpdate(QString,bool)));
+    connect(m_locationDialog, SIGNAL(statusUpdate(QString, bool)),
+            this, SIGNAL(statusUpdate(QString, bool)));
 
     connect(this, SIGNAL(userLocationReady(User*)),
             m_mapViewScreen, SIGNAL(userLocationReady(User*)));
index f0da52e..c9dff1c 100644 (file)
@@ -20,8 +20,7 @@
 */
 
 #include "mapviewscreen.h"
-#include "../map/mapview.h"
-#include "../map/mapengine.h"
+#include "map/mapview.h"
 #include "panelcommon.h"
 #include "panelsidebar.h"
 
@@ -59,14 +58,14 @@ MapViewScreen::MapViewScreen(QWidget *parent)
     connect(this, SIGNAL(zoomOutKeyPressed()),
             m_mapEngine, SLOT(zoomOut()));
 
-    connect(mapView, SIGNAL(viewResizedNewSize(int,int)),
+    connect(mapView, SIGNAL(viewResizedNewSize(int, int)),
             this, SLOT(drawOsmLicense(int, int)));
-    connect(mapView, SIGNAL(viewResizedNewSize(int,int)),
-            m_friendsListPanel, SLOT(reDrawFriendsPanel(int,int)));
-    connect(mapView, SIGNAL(viewResizedNewSize(int,int)),
-            m_userPanel, SLOT(reDrawUserPanel(int,int)));
-    connect(mapView, SIGNAL(viewResizedNewSize(int,int)),
-            friendsListPanelSidebar, SLOT(reDrawSidebar(int,int)));
+    connect(mapView, SIGNAL(viewResizedNewSize(int, int)),
+            m_friendsListPanel, SLOT(reDrawFriendsPanel(int, int)));
+    connect(mapView, SIGNAL(viewResizedNewSize(int, int)),
+            m_userPanel, SLOT(reDrawUserPanel(int, int)));
+    connect(mapView, SIGNAL(viewResizedNewSize(int, int)),
+            friendsListPanelSidebar, SLOT(reDrawSidebar(int, int)));
 
     connect(m_zoomButtonPanel->m_zoomInBtn, SIGNAL(clicked()),
             m_mapEngine, SLOT(zoomIn()));
@@ -91,7 +90,7 @@ MapViewScreen::MapViewScreen(QWidget *parent)
     m_osmLicense = new QLabel(this);
     m_osmLicense->setAttribute(Qt::WA_TranslucentBackground, true);
     m_osmLicense->setAttribute(Qt::WA_TransparentForMouseEvents, true);
-    m_osmLicense->setText("<font color='black'>"+OSM_LICENSE+"</font>");
+    m_osmLicense->setText("<font color='black'>" + OSM_LICENSE + "</font>");
     m_osmLicense->setFont(QFont("Nokia Sans", 9));
     m_osmLicense->resize(m_osmLicense->fontMetrics().width(OSM_LICENSE),
                          m_osmLicense->fontMetrics().height());
index 3793db9..e5959a3 100644 (file)
@@ -51,7 +51,6 @@ public:
  * MEMBER FUNCTIONS AND SLOTS
  ******************************************************************************/
 private slots:
-
     /**
     * @brief Slot for enabling auto centering.
     *
index fa6ad64..5f357ea 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include <QDebug>
+#include <QPainter>
 
 #include "zoombuttonpanel.h"
 #include "panelcommon.h"
index aab6dee..a28c5a9 100644 (file)
 #ifndef ZOOMBUTTONPANEL_H
 #define ZOOMBUTTONPANEL_H
 
-#include <QRectF>
 #include <QWidget>
-#include <QPainter>
-#include <QGraphicsItem>
+#include <QPaintEvent>
 #include <QGridLayout>
-#include <QStyleOptionGraphicsItem>
-#include <QGraphicsSceneMouseEvent>
+#include <QGraphicsItem>
 
 #include "imagebutton.h"