#include "qmlui/userimageprovider.h"
#include "updatelocation.h"
+#ifdef Q_WS_MAEMO_5
+#include <QX11Info>
+#include <X11/Xatom.h>
+#include <X11/Xlib.h>
+#endif
+
const QString SETTINGS_GPS_ENABLED = "GPS_ENABLED"; ///< GPS setting
const QString SETTINGS_AUTO_CENTERING_ENABLED = "AUTO_CENTERING_ENABLED";///< Auto centering setting
const int DEFAULT_ZOOM_LEVEL_WHEN_GPS_IS_AVAILABLE = 12; ///< Default zoom level when GPS available
*/
void routeFromTo(double fromLatitude, double fromLongitude, double toLatitude, double toLongitude);
+ /**
+ * @brief Shows contact dialog.
+ *
+ * Calls MainWindow showContactDialog with contact guid defined by contact's Facebook ID.
+ * @param facebookId contact's facebookId
+ */
+ void showContactDialog(const QString &facebookId);
+
private:
/**
* @brief Read settings and determine whether to use GPS and autocentering.
void setPowerSaving(bool enabled);
/**
- * @brief Shows contact dialog.
- *
- * Calls MainWindow showContactDialog with contact guid defined by contact's Facebook ID.
- * @param facebookId contact's facebookId
- */
- void showContactDialog(const QString &facebookId);
-
- /**
* @brief Automatic update interval timer timeout.
*
* Requests update location if user has moved.
Row {
Image {
id: routeButton
- source: "qrc:/res/images/route_to_friend.png"
+ source: routeButtonArea.pressed ? "qrc:/res/images/route_to_friend_s.png" : "qrc:/res/images/route_to_friend.png"
MouseArea {
- id: mouseArea
+ id: routeButtonArea
anchors.fill: parent
onClicked: {
engine.routeFromTo(map.gpsLocationLatitude, map.gpsLocationLongitude, latitude, longitude);
}
Image {
id: contactButton
- source: "qrc:/res/images/contact.png"
+ source: contactButtonArea.pressed ? "qrc:/res/images/contact_s.png" : "qrc:/res/images/contact.png"
+ MouseArea {
+ id: contactButtonArea
+ anchors.fill: parent
+ onClicked: {
+ engine.showContactDialog(userId);
+ }
+ }
}
}
}