diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-25 15:46:57 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-25 15:46:57 +0100 |
commit | d206f183cda7dcb249846fcc15fcfeced0bf00ba (patch) | |
tree | b63d722f21b55f6a0e21f12e22cd7bed493f0598 /src/previewimage.h | |
parent | should fix bug 211782 (diff) | |
parent | A better preview implementation: (diff) | |
download | rekonq-d206f183cda7dcb249846fcc15fcfeced0bf00ba.tar.xz |
Merge commit 'refs/merge-requests/1904' of git://gitorious.org/rekonq/mainline into Lasts2
Diffstat (limited to 'src/previewimage.h')
-rw-r--r-- | src/previewimage.h | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/src/previewimage.h b/src/previewimage.h index d7f4d2aa..e9504210 100644 --- a/src/previewimage.h +++ b/src/previewimage.h @@ -49,44 +49,49 @@ class PreviewImage : public QWidget public: PreviewImage(const QUrl &url, const QString &title, int index, bool isFavorite); ~PreviewImage(); - + QString guessNameFromUrl(QUrl url); - + public slots: void snapFinished(); void removeMe(); void setUrlFromAction(); void refreshPreview(); - + protected: void contextMenuEvent(QContextMenuEvent *event); void mouseDoubleClickEvent(QMouseEvent *event); void mouseMoveEvent(QMouseEvent *event); void mousePressEvent(QMouseEvent *event); void mouseReleaseEvent(QMouseEvent *event); - + void loadUrlPreview(const QUrl &url); KActionMenu *historyMenu(); void showEmptyPreview(); - + private: void checkTitle(); - + QPixmap renderBackground(int w, int h, int t, int b, int l, int r); + QPixmap m_pixmap; WebSnap *ws; - + 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; + QLabel *m_backgroundLabel; + QLabel *m_previewLabel; + + QSize m_size; }; #endif // PREVIEW_IMAGE_H |