summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-07-31 08:31:54 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-07-31 08:31:54 (GMT)
commit4321da432e3332e868abf07678f15d305fec2a4b (patch)
tree72cc36c121448dce907a4ccbc679bc3cad3c07f4 /Swift/QtUI/Whiteboard/GView.h
parent5fafa602d859657d6616acdbb63dfcd501aed9a0 (diff)
downloadswift-contrib-4321da432e3332e868abf07678f15d305fec2a4b.zip
swift-contrib-4321da432e3332e868abf07678f15d305fec2a4b.tar.bz2
Upgraded update operation with ability to move elements
Diffstat (limited to 'Swift/QtUI/Whiteboard/GView.h')
-rw-r--r--Swift/QtUI/Whiteboard/GView.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/Whiteboard/GView.h b/Swift/QtUI/Whiteboard/GView.h
index f219929..f0d4fef 100644
--- a/Swift/QtUI/Whiteboard/GView.h
+++ b/Swift/QtUI/Whiteboard/GView.h
@@ -21,7 +21,7 @@ namespace Swift {
Q_OBJECT;
public:
enum Mode { Rubber, Line, Rect, Circle, HandLine, FilledHandLine, Text, Polygon, Select };
- enum Type { New, Update };
+ enum Type { New, Update, MoveUp, MoveDown };
GView(QGraphicsScene* scene, QWidget* parent = 0);
void setLineWidth(int i);
void setLineColor(QColor color);
@@ -38,6 +38,7 @@ namespace Swift {
QGraphicsItem* getItem(QString id);
void deleteItem(QString id);
QString getNewID();
+ void move(QGraphicsItem* item, int npos);
public slots:
void moveUpSelectedItem();