Class for indicating current position accuired from GPS on the map. More...
#include <gpslocationitem.h>
Public Member Functions | |
| GPSLocationItem () | |
| Constructor. | |
| void | setEnabled (bool enable) |
| Enable / disable item. | |
| void | updatePosition (QPoint scenePosition, qreal accuracy) |
| Update position item. | |
Private Types | |
| enum | Accuracy { NOT_SET, ACCURATE, COARSE } |
Enum for current pixmap state. | |
Private Attributes | |
| QPixmap | m_accuratePixmap |
| pixmap used when GPS fix is accurate | |
| QPixmap | m_coarsePixmap |
| pixmap used when GPS fix is coarse | |
| Accuracy | m_currentAccuracy |
| current accuracy | |
Class for indicating current position accuired from GPS on the map.
Also GPS fix accuracy is indicated by using two different color indicator images based on current accuracy
| void GPSLocationItem::setEnabled | ( | bool | enable | ) |
Enable / disable item.
| enable | True if item should be enabled, otherwise false |
| void GPSLocationItem::updatePosition | ( | QPoint | scenePosition, | |
| qreal | accuracy | |||
| ) |
Update position item.
Use yellow led image when using network positioning and green led image when using GPS.
| scenePosition | Scene coordinate | |
| accuracy | Accuracy of the GPS fix |
1.6.1