Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Damiano Lombardi committed Dec 30, 2017
1 parent ea138c1 commit 05c055b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
8 changes: 0 additions & 8 deletions Documentation/My_Skate_Map_stralciata.kml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ Arona
http://photos-c.ak.fbcdn.net/photos-ak-snc1/v2354/208/59/1014471167/n1014471167_30316786_3112.jpg
8.550451,45.74826

Ascona
http://lh4.ggpht.com/_1mMyAZAEcFQ/RhvvGPKQXCI/AAAAAAAAAMs/0uQbj4jwzbg/s144/016_0001.jpg
<![CDATA[Da ale (http://picasaweb.google.com/STLuina/Ale?feat=embedwebsite)]]>
8.771671,46.16199

Bern
7.407392,46.948548

Expand Down Expand Up @@ -133,9 +128,6 @@ Sportstrasse 97
Portland - Burnside
-122.66343200000001,45.523066

Riazzino - Vanja
8.893175,46.1757

Riva del Garda
http://www.skatemap.it/images/spots/tn/tn_135_621378769.jpg
10.879211,45.86515
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

//-----------------------------------------------------------------------------------------------------------------------------

const int LocationManager::_CONST::GPS::UPDATE_ITERVAL_MS (4000);

//-----------------------------------------------------------------------------------------------------------------------------

LocationManager::LocationManager(Settings *settings,
PlateformDetail *plateformDetail,
QObject *parent)
Expand All @@ -42,14 +46,14 @@ LocationManager::LocationManager(Settings *settings,

if (m_GeoPositionInfoSource == NULL)
{
Logger::warning(tr("Invalid GeoPositionInfoSource"));
Logger::warning(QString("LocationManager::%1() Invalid GeoPositionInfoSource").arg(__FUNCTION__));

// Set position from last position
setCurrentPosition(m_Settings->get_Location_LastCoordinate());
}
else
{
m_GeoPositionInfoSource->setUpdateInterval(3000);
m_GeoPositionInfoSource->setUpdateInterval(_CONST::GPS::UPDATE_ITERVAL_MS);

if(m_GeoPositionInfoSource->lastKnownPosition().isValid())
{
Expand Down
10 changes: 10 additions & 0 deletions MobileClient/QtProject/src/cpp/HelperClasses/LocationManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ class LocationManager : public QObject

public:

class _CONST
{
public:
class GPS
{
public:
static const int UPDATE_ITERVAL_MS;
}; // GPS
}; // _CONST

explicit LocationManager(Settings *settings,
PlateformDetail *plateformDetail,
QObject *parent = 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,7 @@ Item{

onClicked: {
// Set crop image
if(wa_PictureUploader.setCropPicture(source,
cropX,
if(wa_PictureUploader.setCropPicture(cropX,
cropY,
cropSide)
=== false)
Expand All @@ -244,11 +243,9 @@ Item{
function navigator_ContinueButtonClicked()
{
// Set crop image
if(wa_PictureUploader.setCropPicture(source,
cropX,
if(wa_PictureUploader.setCropPicture(cropX,
cropY,
cropSide,
image.rotation)
cropSide)
=== false)
{
messageDialog_Error.text = wa_PictureUploader.lastErrorText();
Expand Down

0 comments on commit 05c055b

Please sign in to comment.