diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-17 18:27:40 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-17 18:27:40 +0200 |
commit | 8ef95ed5f65c07020a91b9fce306eacc0309794a (patch) | |
tree | 1292b44906fddb23d368335daf32eed615a7ca70 /src/tabbar.cpp | |
parent | Based on Lionel's merge request #80: (diff) | |
download | rekonq-8ef95ed5f65c07020a91b9fce306eacc0309794a.tar.xz |
Clean tab previews, not showing on loading
removed a duplicated method and save one QPixmap
in WebSnap class
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r-- | src/tabbar.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 518b1a96..f8da57b1 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -164,13 +164,16 @@ void TabBar::showTabPreview(int tab) delete m_previewPopup.data(); m_previewPopup.clear(); + if (indexedTab->progress() != 0) + return; + m_previewPopup = new KPassivePopup(this); m_previewPopup.data()->setFrameShape(QFrame::StyledPanel); m_previewPopup.data()->setFrameShadow(QFrame::Plain); m_previewPopup.data()->setFixedSize(w, h); QLabel *l = new QLabel(); - l->setPixmap( WebSnap::renderPreview( *indexedTab->page(), w, h, false) ); + l->setPixmap( WebSnap::renderPreview( *indexedTab->page(), w, h, true) ); m_previewPopup.data()->setView(l); m_previewPopup.data()->layout()->setAlignment(Qt::AlignTop); |