diff options
author | matgic78 <matgic78@gmail.com> | 2009-10-22 18:05:39 +0200 |
---|---|---|
committer | matgic78 <matgic78@gmail.com> | 2009-10-22 18:05:39 +0200 |
commit | 08e717b376a138e6d0e12213598e95cbed96a78e (patch) | |
tree | aeff467c97f268ed8bc055a8dc32b3bbd9c6599f | |
parent | rekonq 0.2.70 (diff) | |
download | rekonq-08e717b376a138e6d0e12213598e95cbed96a78e.tar.xz |
Fix "cursor: pointer" setting it in previewimage.cpp with QWidget property
BusyCursor shown when hovering a loading preview
-rw-r--r-- | data/home.html | 1 | ||||
-rw-r--r-- | src/previewimage.cpp | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/data/home.html b/data/home.html index 893f5d76..1a5f1474 100644 --- a/data/home.html +++ b/data/home.html @@ -114,7 +114,6 @@ margin-left: 4px; text-align: center; float:left; margin-bottom: 7%; -cursor: pointer; } /* -------------------------------------------------------- */ diff --git a/src/previewimage.cpp b/src/previewimage.cpp index e7f8aea5..f5421fe3 100644 --- a/src/previewimage.cpp +++ b/src/previewimage.cpp @@ -74,6 +74,8 @@ PreviewImage::PreviewImage(const QUrl &url, const QString &title, int index, boo setLayout(mainLayout); loadUrlPreview(url); + + setCursor(Qt::PointingHandCursor); } @@ -119,6 +121,7 @@ void PreviewImage::loadUrlPreview(const QUrl& url) m_imageLabel->setMovie(movie); movie->start(); m_textLabel->setText( i18n("Loading preview...") ); + setCursor(Qt::BusyCursor); } } @@ -135,6 +138,8 @@ void PreviewImage::snapFinished() checkTitle(); m_textLabel->setText(m_title); + setCursor(Qt::PointingHandCursor); + // kDebug() << "m_pixmap: " << m_pixmap.size(); // kDebug() << "text label: " << m_textLabel->size(); // kDebug() << "image label: " << m_imageLabel->size(); |