diff options
author | Björn Hagemeister | 2014-07-29 15:31:56 +0200 |
---|---|---|
committer | Björn Hagemeister | 2014-07-29 15:31:56 +0200 |
commit | 254c7fb41a96f42ef4049d5a495e47fad2e3e983 (patch) | |
tree | fb5540996acdb0d8a91cc4a7d9447f7dd2cb8015 /src/server/connectionframe | |
parent | Read the configfile and place the frames according to the coordinates (diff) | |
download | pvs2-254c7fb41a96f42ef4049d5a495e47fad2e3e983.tar.gz pvs2-254c7fb41a96f42ef4049d5a495e47fad2e3e983.tar.xz pvs2-254c7fb41a96f42ef4049d5a495e47fad2e3e983.zip |
Fixed bug, that frame moved on (0,0) is asked to be deleted.
Diffstat (limited to 'src/server/connectionframe')
-rw-r--r-- | src/server/connectionframe/connectionframe.cpp | 2 | ||||
-rw-r--r-- | src/server/connectionframe/connectionframe.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/connectionframe/connectionframe.cpp b/src/server/connectionframe/connectionframe.cpp index 1bf6fb6..39aba12 100644 --- a/src/server/connectionframe/connectionframe.cpp +++ b/src/server/connectionframe/connectionframe.cpp @@ -188,7 +188,7 @@ void ConnectionFrame::mouseReleaseEvent(QMouseEvent* event) if ((this->pos() - _previousPosition).manhattanLength() > _startDragDistance ) { qDebug("Moved"); - emit frameMoved(this); + emit frameMoved(true, this); } else { diff --git a/src/server/connectionframe/connectionframe.h b/src/server/connectionframe/connectionframe.h index faa1390..3f1815b 100644 --- a/src/server/connectionframe/connectionframe.h +++ b/src/server/connectionframe/connectionframe.h @@ -78,7 +78,7 @@ protected: void timerEvent(QTimerEvent* event); signals: - void frameMoved(ConnectionFrame* frame); + void frameMoved(bool activateTrash, ConnectionFrame* frame); void doubleClicked(ConnectionFrame* frame); void clicked(ConnectionFrame* frame); |