Parent Directory | Revision Log
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 |