summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-15 01:01:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-15 01:01:14 +0200
commit99e0cde9c8e53e33d0dc700cf89b5101dab3db2b (patch)
tree9ac3453ef3459a799d19184d8f77bb6fd3aa40d9 /src
parentFixing code of PluginFactory + PreviewImage. (diff)
downloadrekonq-99e0cde9c8e53e33d0dc700cf89b5101dab3db2b.tar.xz
no really need to refresh thumnbs. If you really wanna so, you can do
from clear cached data :)
Diffstat (limited to 'src')
-rw-r--r--src/previewimage.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/previewimage.cpp b/src/previewimage.cpp
index d6579959..873abccf 100644
--- a/src/previewimage.cpp
+++ b/src/previewimage.cpp
@@ -146,6 +146,7 @@ void PreviewImage::showEmptyPreview()
void PreviewImage::mouseDoubleClickEvent(QMouseEvent *event)
{
+ kDebug() << "no double click over here, thanks :D";
Q_UNUSED(event);
}
@@ -175,6 +176,7 @@ void PreviewImage::mousePressEvent(QMouseEvent *event)
void PreviewImage::mouseReleaseEvent(QMouseEvent *event)
{
+ kDebug() << "NOOOOOOO... don't leave your finger from the button!!!!";
Q_UNUSED(event)
}
@@ -241,9 +243,6 @@ void PreviewImage::removeMe()
showEmptyPreview();
- QString path = KStandardDirs::locateLocal("cache", QString("thumbs/") + guessNameFromUrl(m_url) + ".png", true);
- QFile::remove(path);
-
m_url = "";
}
@@ -252,11 +251,7 @@ void PreviewImage::setUrlFromAction()
{
KAction *a = qobject_cast<KAction*>(sender());
KUrl url = KUrl(a->data().toString());
-
- // delete thumb if exists to get a refreshed one.
- QString path = KStandardDirs::locateLocal("cache", QString("thumbs/") + guessNameFromUrl(url) + ".png", true);
- QFile::remove(path);
-
+
if(m_button)
{
layout()->deleteLater();
@@ -278,6 +273,9 @@ QString PreviewImage::guessNameFromUrl(QUrl url)
name.remove('.');
name.remove('-');
name.remove('_');
+ name.remove('?');
+ name.remove('=');
+ name.remove('+');
return name;
}