summaryrefslogtreecommitdiff
path: root/src/previewimage.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-25 15:46:57 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-10-25 15:46:57 +0100
commitd206f183cda7dcb249846fcc15fcfeced0bf00ba (patch)
treeb63d722f21b55f6a0e21f12e22cd7bed493f0598 /src/previewimage.h
parentshould fix bug 211782 (diff)
parentA better preview implementation: (diff)
downloadrekonq-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.h25
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