summaryrefslogtreecommitdiff
path: root/src/previewimage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-09 11:40:22 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-09 11:40:22 +0100
commit071f68793cab77ae14870ed957517134550d7ebe (patch)
tree10234acf083922edebbae0ccdc325a2cbfacdfe5 /src/previewimage.cpp
parentChanged loadUrl behaviour to let rekonq being more UI responsive (diff)
downloadrekonq-071f68793cab77ae14870ed957517134550d7ebe.tar.xz
Setting m_url in the ctor. Seems safer :)
Diffstat (limited to 'src/previewimage.cpp')
-rw-r--r--src/previewimage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/previewimage.cpp b/src/previewimage.cpp
index 1c554cb9..f898dc6f 100644
--- a/src/previewimage.cpp
+++ b/src/previewimage.cpp
@@ -56,7 +56,7 @@ PreviewImage::PreviewImage(const QUrl &url, const QString &title, int index, boo
: QWidget()
, ws(0)
, loadingSnapshot(false)
- , m_url(0)
+ , m_url(url)
, m_title(title)
, m_isFavorite(isFavorite)
, m_index(index)
@@ -72,10 +72,10 @@ PreviewImage::PreviewImage(const QUrl &url, const QString &title, int index, boo
int borderBottom = 14;
int borderLeft = 16;
- int previewWidth=200;
- int previewHeight=150;
+ int previewWidth = 200;
+ int previewHeight = 150;
- int urlHeight=18;
+ int urlHeight = 18;
m_size = QSize(borderLeft+previewWidth+borderRight, borderTop+previewHeight+borderBottom+urlHeight);