summaryrefslogtreecommitdiff
path: root/src/previewimage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-01 12:02:30 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-01 12:02:30 +0200
commit01e5c03236fa589b719544f478ea036b8b1e2ee7 (patch)
treef13f954c326113b2aa92f172f97cfd4c05f7fac2 /src/previewimage.cpp
parentSetting session and request metadata about ssl navigation (diff)
downloadrekonq-01e5c03236fa589b719544f478ea036b8b1e2ee7.tar.xz
Code fixes in the homepage
also changed history && bookmarks layout (we need just icons there)
Diffstat (limited to 'src/previewimage.cpp')
-rw-r--r--src/previewimage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/previewimage.cpp b/src/previewimage.cpp
index af6e4361..44c0850a 100644
--- a/src/previewimage.cpp
+++ b/src/previewimage.cpp
@@ -36,7 +36,7 @@
#include <KDebug>
-PreviewImage::PreviewImage(const QString &url)
+PreviewImage::PreviewImage(const QUrl &url)
: QLabel()
, ws(0)
, m_url(url)
@@ -88,9 +88,9 @@ void PreviewImage::mousePressEvent(QMouseEvent *event)
}
-QString PreviewImage::guessNameFromUrl(QString url)
+QString PreviewImage::guessNameFromUrl(QUrl url)
{
- QString name = QUrl(url).toString( QUrl::RemoveScheme | QUrl::RemoveUserInfo | QUrl::StripTrailingSlash );
+ QString name = url.toString( QUrl::RemoveScheme | QUrl::RemoveUserInfo | QUrl::StripTrailingSlash );
// TODO learn Regular Expressions :)
name.remove('/');