summaryrefslogtreecommitdiffstats
path: root/pictureviewer2.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2015-08-27 05:33:49 +0200
committerArno <arno@disconnect.de>2015-08-27 05:33:49 +0200
commit9eedf8c619c15302d080ee55b513e07a2bf5d591 (patch)
tree9faa533c1d0d73c075b4f6c2123b4ce527db4a62 /pictureviewer2.h
parent230d609d3bc85e49b6743ee06f59cb7c3d636714 (diff)
downloadSheMov-9eedf8c619c15302d080ee55b513e07a2bf5d591.tar.gz
SheMov-9eedf8c619c15302d080ee55b513e07a2bf5d591.tar.bz2
SheMov-9eedf8c619c15302d080ee55b513e07a2bf5d591.zip
Display control items
Draw control items in PictureViewer2 at the right centered on the y- axis.
Diffstat (limited to 'pictureviewer2.h')
-rw-r--r--pictureviewer2.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/pictureviewer2.h b/pictureviewer2.h
index 6ebcdd8..a3f1f2d 100644
--- a/pictureviewer2.h
+++ b/pictureviewer2.h
@@ -16,6 +16,7 @@
class PictureViewerGraphicsScene;
class BoundingRectItem;
+class QGraphicsTextItem;
class QGraphicsPixmapItem;
class QWheelEvent;
class QContextMenuEvent;
@@ -87,7 +88,7 @@ class PictureViewer2 : public QGraphicsView {
void nextFromAll();
private:
- void setupDialog();
+ void constructControlItem();
void setGradient(const QPixmap &pic);
void setNextBatch();
QTextDocument *treeToString(const SmTreeItem *root) const;
@@ -109,6 +110,13 @@ class PictureViewer2 : public QGraphicsView {
PictureViewer2Item *mFnItem;
PictureViewer2Item *mMappingItem;
BoundingRectItem *mBoundingRectItem;
+ QGraphicsTextItem *mNextC;
+ QGraphicsTextItem *mPreviousC;
+ QGraphicsTextItem *mSkipForwardC;
+ QGraphicsTextItem *mSkipBackwardC;
+ QGraphicsTextItem *mSlideStopC;
+ QGraphicsTextItem *mSlideC;
+ QGraphicsTextItem *mSlideAllC;
bool mUseGradient;
QColor mBgColor;
QPointF mInfoPos;