2015-07-17 16:09:42 +00:00
|
|
|
#ifndef QMLPROFILE_H
|
|
|
|
#define QMLPROFILE_H
|
|
|
|
|
|
|
|
#include <QQuickPaintedItem>
|
|
|
|
|
|
|
|
class ProfileWidget2;
|
|
|
|
|
|
|
|
class QMLProfile : public QQuickPaintedItem
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(QString diveId READ diveId WRITE setDiveId NOTIFY diveIdChanged)
|
|
|
|
public:
|
|
|
|
explicit QMLProfile(QQuickItem *parent = 0);
|
2015-11-12 00:43:13 +00:00
|
|
|
virtual ~QMLProfile();
|
|
|
|
|
2015-07-17 16:09:42 +00:00
|
|
|
void paint(QPainter *painter);
|
|
|
|
|
|
|
|
QString diveId() const;
|
|
|
|
void setDiveId(const QString &diveId);
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString m_diveId;
|
2015-11-12 00:43:13 +00:00
|
|
|
ProfileWidget2 *m_profileWidget;
|
2015-07-17 16:09:42 +00:00
|
|
|
signals:
|
|
|
|
void rightAlignedChanged();
|
|
|
|
void diveIdChanged();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QMLPROFILE_H
|