summaryrefslogtreecommitdiff
path: root/src/previewimage.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-17 02:39:24 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-19 11:41:45 +0200
commit4d8d9d6e4eb149b46af315269e9578eb6bbfc241 (patch)
tree363308f6dc37c843b371ca95cde40b05e0033ecf /src/previewimage.h
parentMerge commit 'refs/merge-requests/1842' of git://gitorious.org/rekonq/mainlin... (diff)
downloadrekonq-4d8d9d6e4eb149b46af315269e9578eb6bbfc241.tar.xz
STEP 1
creating a new Preview Image Object, based on QWidget and containing the pixmap AND the url
Diffstat (limited to 'src/previewimage.h')
-rw-r--r--src/previewimage.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/previewimage.h b/src/previewimage.h
index 5568dd29..6bc27d8d 100644
--- a/src/previewimage.h
+++ b/src/previewimage.h
@@ -35,16 +35,17 @@
// Qt Includes
#include <QLabel>
+#include <QFrame>
#include <QImage>
#include <QUrl>
#include <QToolButton>
-class PreviewImage : public QLabel
+class PreviewImage : public QWidget
{
Q_OBJECT
public:
- PreviewImage(const QUrl &url, int index, bool isFavorite);
+ PreviewImage(const QUrl &url, const QString &title, int index, bool isFavorite);
~PreviewImage();
QString guessNameFromUrl(QUrl url);
@@ -70,14 +71,18 @@ private:
QPixmap m_pixmap;
WebSnap *ws;
- QUrl m_url;
- QString m_savePath;
-
+ QString m_savePath;
bool loadingSnapshot;
+
+ QUrl m_url;
+ QString m_title;
bool m_isFavorite;
int m_index;
QToolButton *m_button;
+
+ QLabel *m_imageLabel;
+ QLabel *m_textLabel;
};
#endif // PREVIEW_IMAGE_H