blob: fa676582e27b5ceb38964002bafa6afce6750ba1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef BOOKMARKOBJECT_H
#define BOOKMARKOBJECT_H
#include <QObject>
#include "coord.h"
class BookmarkObject : public QObject
{
Q_OBJECT
Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
Q_PROPERTY(struct pcoord coords NOTIFY coordsChanged)
public:
BookmarkObject(QObject *parent=0);
BookmarkObject(const QString &name, struct pcoord &coords, QObject *parent=0);
QString name() const;
void setName(const QString &name);
struct pcoord coords() const;
signals:
void nameChanged();
private:
struct pcoord m_coords;
QString m_name;
};
#endif // BOOKMARKOBJECT_H
|