Removed warnings and fixed minor bug in publish location message
authorlampehe-local <henri.lampela@ixonos.com>
Tue, 18 May 2010 05:38:04 +0000 (08:38 +0300)
committerlampehe-local <henri.lampela@ixonos.com>
Tue, 18 May 2010 05:38:04 +0000 (08:38 +0300)
src/situareservice/situareservice.cpp
src/ui/userinfo.cpp

index a1a4f02..c5e4150 100644 (file)
@@ -195,11 +195,11 @@ QString SituareService::formUrlParameters(const QPointF &coordinates, QString st
     parameters.append(QUESTION_MARK);
     parameters.append(LATITUDE);
     parameters.append(EQUAL_MARK);
-    parameters.append(QString::number(coordinates.x()));
+    parameters.append(QString::number(coordinates.y()));
     parameters.append(AMBERSAND_MARK);
     parameters.append(LONGTITUDE);
     parameters.append(EQUAL_MARK);
-    parameters.append(QString::number(coordinates.y()));
+    parameters.append(QString::number(coordinates.x()));
 
     if(publish.compare(PUBLISH_TRUE) == 0) {
         parameters.append(AMBERSAND_MARK);
index e88eecf..d457e46 100644 (file)
@@ -63,11 +63,11 @@ UserInfo::UserInfo(QWidget *parent)
     verticalLayout->setSpacing(0);
     setLayout(verticalLayout);
 
-    QFormLayout *infoLayout = new QFormLayout(this);
+    QFormLayout *infoLayout = new QFormLayout();
     infoLayout->setMargin(0);
     infoLayout->setSpacing(0);
 
-    QHBoxLayout *buttonLayout = new QHBoxLayout(this);
+    QHBoxLayout *buttonLayout = new QHBoxLayout();
     buttonLayout->setMargin(0);
     buttonLayout->setSpacing(0);