diff options
author | Tobias Markmann <tm@ayena.de> | 2014-10-31 12:23:11 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2014-10-31 14:11:26 (GMT) |
commit | 0ae300e79f0a72abb42aafd2bc5b85e37fd26557 (patch) | |
tree | 6193059aa8cca83d6a1a6123c7b7e7f76a2591a4 /Swift/QtUI/Whiteboard | |
parent | 0dfdaad6e7cd45cb8b233acb3c453bf800966d8e (diff) | |
download | swift-0ae300e79f0a72abb42aafd2bc5b85e37fd26557.zip swift-0ae300e79f0a72abb42aafd2bc5b85e37fd26557.tar.bz2 |
Fix source code layout.
Change-Id: I5042943377bbb09bc46b416975f546e011c313ee
Diffstat (limited to 'Swift/QtUI/Whiteboard')
-rw-r--r-- | Swift/QtUI/Whiteboard/GView.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Swift/QtUI/Whiteboard/GView.h b/Swift/QtUI/Whiteboard/GView.h index 6a4fd2f..bc64589 100644 --- a/Swift/QtUI/Whiteboard/GView.h +++ b/Swift/QtUI/Whiteboard/GView.h @@ -40,12 +40,20 @@ namespace Swift { void move(QGraphicsItem* item, int npos); void deselect(QString id); + signals: + void lastItemChanged(QGraphicsItem* item, int pos, GView::Type type); + void itemDeleted(QString id, int pos); + void lineWidthChanged(int i); + void lineColorChanged(QColor color); + void brushColorChanged(QColor color); + public slots: void moveUpSelectedItem(); void moveDownSelectedItem(); private slots: void handleTextItemModified(QGraphicsTextItem*); + private: void changePenAndBrush(QGraphicsItem* item, QPen pen, QBrush brush); void setActualPenAndBrushFromItem(QGraphicsItem* item); @@ -64,12 +72,5 @@ namespace Swift { QMap<QString, QGraphicsItem*> itemsMap_; QList<QGraphicsItem*> items_; IDGenerator idGenerator; - - signals: - void lastItemChanged(QGraphicsItem* item, int pos, GView::Type type); - void itemDeleted(QString id, int pos); - void lineWidthChanged(int i); - void lineColorChanged(QColor color); - void brushColorChanged(QColor color); }; } |