From 071f68793cab77ae14870ed957517134550d7ebe Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 9 Nov 2009 11:40:22 +0100 Subject: Setting m_url in the ctor. Seems safer :) --- src/previewimage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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); -- cgit v1.2.1