From f7da785b78a2412d1d5bdd43836ed8c9656cae81 Mon Sep 17 00:00:00 2001 From: Björn Hagemeister Date: Mon, 21 Jul 2014 18:14:09 +0200 Subject: Tried to implement the fixed room settings, but is not working correctly right now. Problem is, the frames do not appear at setted position because of placeFrameInFreeCell() - call. Also, after updateSessionName(), all frames and clients are currently deleted if SessionName want to be setted manually. --- src/server/connectionframe/connectionframe.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/server/connectionframe/connectionframe.h') diff --git a/src/server/connectionframe/connectionframe.h b/src/server/connectionframe/connectionframe.h index 5a4e1df..faa1390 100644 --- a/src/server/connectionframe/connectionframe.h +++ b/src/server/connectionframe/connectionframe.h @@ -28,6 +28,7 @@ private: QPoint _clickPoint; QPoint _previousPosition; + QPoint _currentPosition; Client *_client; @@ -56,7 +57,11 @@ public: void setSelection(bool selected); const inline bool isSelected() const { return _isSelected; } + const inline void setCurrentPosition(QPoint position) { _currentPosition = position; } + const inline QPoint& getCurrentPosition() const { return _currentPosition; } + const QString& computerId() const { return _computerId; } + inline void setComputerId(QString computerId) { _computerId = computerId; } Client* client() const { return _client; } inline const bool isTutor() const { return _isTutor; } -- cgit v1.2.3-55-g7522