4 #include "listcommon.h"
6 #include "locationlistitem.h"
8 const int LOCATION_SUBITEM_TEXT_MAX_WIDTH = SUBITEM_TEXT_MAX_WIDTH + MARGIN + IMAGE_WIDTH;
10 LocationListItem::LocationListItem()
12 qDebug() << __PRETTY_FUNCTION__;
14 setSubitemTextWidth(LOCATION_SUBITEM_TEXT_MAX_WIDTH);
15 addSubItem(QString("Hei pitka teksti hep hep hep hep hep hep hep hep hep hep hep hep"),
16 QPixmap(":/res/images/clock.png"));
17 addSubItem(QString("Hep"));
18 addSubItem(QString("Jep"), QPixmap(":/res/images/compass.png"));
21 GeoCoordinate LocationListItem::coordinates()
23 qDebug() << __PRETTY_FUNCTION__;
25 return m_location.coordinates();
28 QString LocationListItem::id() const
30 qDebug() << __PRETTY_FUNCTION__;
35 void LocationListItem::setLocationData(const Location &location)
37 m_location = location;
39 setName(shortenText("blaah bavlsdfasdfhldsaf dsafldsaf ldsa lfadsl fl sadf",
40 ITEM_WIDTH - 3*MARGIN, ListItem::TEXT_SIZE_NORMAL));