aboutsummaryrefslogtreecommitdiffstats
path: root/src/bench/host.h
diff options
context:
space:
mode:
authorMartin Kampas <martin.kampas@jolla.com>2016-11-05 08:49:59 +0100
committerJuergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>2016-11-23 05:24:41 +0000
commit6b6c17f19bda671d6f9553662f1475241837f533 (patch)
tree056e7dce77f805474732b287e7d7aff81ff7bbf0 /src/bench/host.h
parentd99e8c0513cba836972be008007ea97ad145f236 (diff)
Consistently and reliably handle paths to workspace documents
Use relative paths. Consistently and reliably means Always. Change-Id: I660ad89a9b9b8baee782aa701ea101ea542c70ce Reviewed-by: Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>
Diffstat (limited to 'src/bench/host.h')
-rw-r--r--src/bench/host.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/bench/host.h b/src/bench/host.h
index 658303c..e04b4a8 100644
--- a/src/bench/host.h
+++ b/src/bench/host.h
@@ -31,6 +31,8 @@
#pragma once
+#include "livedocument.h"
+
#include <QObject>
#include <QUuid>
#include <QMetaType>
@@ -51,7 +53,7 @@ public:
Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
Q_PROPERTY(QString address READ address WRITE setAddress NOTIFY addressChanged)
Q_PROPERTY(int port READ port WRITE setPort NOTIFY portChanged)
- Q_PROPERTY(QString currentFile READ currentFile WRITE setCurrentFile NOTIFY currentFileChanged)
+ Q_PROPERTY(LiveDocument currentFile READ currentFile WRITE setCurrentFile NOTIFY currentFileChanged)
Q_PROPERTY(int xOffset READ xOffset WRITE setXOffset NOTIFY xOffsetChanged)
Q_PROPERTY(int yOffset READ yOffset WRITE setYOffset NOTIFY yOffsetChanged)
Q_PROPERTY(int rotation READ rotation WRITE setRotation NOTIFY rotationChanged)
@@ -67,7 +69,7 @@ public:
QString name() const;
QString address() const;
int port() const;
- QString currentFile() const;
+ LiveDocument currentFile() const;
int xOffset() const;
int yOffset() const;
int rotation() const;
@@ -88,7 +90,7 @@ signals:
void nameChanged(QString arg);
void addressChanged(QString arg);
void portChanged(int arg);
- void currentFileChanged(QString arg);
+ void currentFileChanged(LiveDocument arg);
void xOffsetChanged(int arg);
void yOffsetChanged(int arg);
void rotationChanged(int arg);
@@ -102,7 +104,7 @@ public slots:
void setName(QString arg);
void setAddress(QString arg);
void setPort(int arg);
- void setCurrentFile(QString arg);
+ void setCurrentFile(LiveDocument arg);
void setXOffset(int arg);
void setYOffset(int arg);
void setRotation(int arg);
@@ -117,7 +119,7 @@ private:
QString m_name;
QString m_address;
int m_port;
- QString m_currentFile;
+ LiveDocument m_currentFile;
int m_xOffset;
int m_yOffset;
int m_rotation;