summaryrefslogtreecommitdiffstats
path: root/pictureviewerinfoitem.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-05-24 14:14:00 +0200
committerArno <am@disconnect.de>2010-05-24 14:14:00 +0200
commit199bf012a87ace47044627189012b854570e3970 (patch)
tree735966e8d8843c3f5beddaaff6c657d8c5bba030 /pictureviewerinfoitem.h
parentf3b7e335c988cadd463063ca72790a638e44970e (diff)
downloadSheMov-199bf012a87ace47044627189012b854570e3970.tar.gz
SheMov-199bf012a87ace47044627189012b854570e3970.tar.bz2
SheMov-199bf012a87ace47044627189012b854570e3970.zip
Implemented PictureViewer class
Don't call an external program for showing a picture. When an image is doubleclicked a new windows shows the picture. Pictures can still be opened in an exteral program by using the "Open with..." context menu item.
Diffstat (limited to 'pictureviewerinfoitem.h')
-rw-r--r--pictureviewerinfoitem.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/pictureviewerinfoitem.h b/pictureviewerinfoitem.h
new file mode 100644
index 0000000..25deec4
--- /dev/null
+++ b/pictureviewerinfoitem.h
@@ -0,0 +1,23 @@
+/*
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version
+ 2 of the License, or (at your option) any later version.
+*/
+
+#ifndef PICTUREVIEWERINFOITEM_H
+#define PICTUREVIEWERINFOITEM_H
+
+#include <QGraphicsItem>
+
+class PictureviewerInfoItem : public QGraphicsItem {
+ public:
+ PictureviewerInfoItem(const QString &fileName, QGraphicsItem *parent = 0);
+ QRectF boundingRect() const;
+ void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
+
+ private:
+ const QString mFileName;
+};
+
+#endif