| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
#pragma once |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
#include <QTreeWidgetItem> |
| 20 |
#include <QPersistentModelIndex> |
| 21 |
#include <QUrl> |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
#include "geoifacetypes.h" |
| 26 |
#include "geocoordinates.h" |
| 27 |
|
| 28 |
using namespace Digikam; |
| 29 |
|
| 30 |
const int RoleMyData = Qt::UserRole+0; |
| 31 |
const int RoleCoordinates = Qt::UserRole+1; |
| 32 |
|
| 33 |
class MyImageItem : public QTreeWidgetItem |
| 34 |
{ |
| 35 |
public: |
| 36 |
|
| 37 |
MyImageItem(const QUrl& url, const GeoCoordinates& itemCoordinates); |
| 38 |
~MyImageItem() override; |
| 39 |
|
| 40 |
QVariant data(int column, int role) const override; |
| 41 |
void setData(int column, int role, const QVariant& value) override; |
| 42 |
|
| 43 |
private: |
| 44 |
|
| 45 |
GeoCoordinates coordinates; |
| 46 |
QUrl imageUrl; |
| 47 |
|
| 48 |
private: |
| 49 |
|
| 50 |
Q_DISABLE_COPY(MyImageItem) |
| 51 |
}; |