/[projects]/infoscreen/pictureview.h
ViewVC logotype

Contents of /infoscreen/pictureview.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 524 - (show annotations) (download)
Tue Jan 5 14:03:06 2010 UTC (14 years, 4 months ago) by torben
File MIME type: text/plain
File size: 468 byte(s)
Added a plain picture viewer
1 #ifndef PICTUREVIEW_H
2 #define PICTUREVIEW_H
3
4 #include <QWidget>
5 #include <QMap>
6
7 class QHttp;
8
9 class PictureView : public QWidget
10 {
11 Q_OBJECT
12 public:
13 PictureView(QWidget* parent);
14 void loadFromUrl(QString source);
15 public slots:
16 void onLoad(int id, bool ok);
17 protected:
18 virtual void paintEvent ( QPaintEvent* event);
19 private:
20 QHttp* http;
21 QMap<QString, QPixmap> map;
22 QString requestedUrl;
23
24 QPixmap image;
25
26 };
27
28 #endif // PICTUREVIEW_H

  ViewVC Help
Powered by ViewVC 1.1.20