1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 04:36:34 +01:00

Fix: Flickering when showing site info/bookmarks/rss widget in

addressbar
This commit is contained in:
nowrep 2012-05-06 20:29:14 +02:00
parent 7037e562ae
commit 5c9383a54a
4 changed files with 13 additions and 3 deletions

View File

@ -123,10 +123,13 @@ void BookmarksWidget::toggleSpeedDial()
void BookmarksWidget::showAt(QWidget* _parent)
{
show();
layout()->invalidate();
layout()->activate();
QPoint p = _parent->mapToGlobal(QPoint(0, 0));
move((p.x() + _parent->width()) - width(), p.y() + _parent->height());
show();
}
BookmarksWidget::~BookmarksWidget()

View File

@ -74,7 +74,8 @@ RSSWidget::RSSWidget(WebView* view, QWidget* parent)
void RSSWidget::showAt(QWidget* _parent)
{
show();
layout()->invalidate();
layout()->activate();
const QPoint &widgetPos = _parent->mapToGlobal(QPoint(0, 0));
@ -83,6 +84,8 @@ void RSSWidget::showAt(QWidget* _parent)
newPos.setY(widgetPos.y() + _parent->height());
move(newPos);
show();
}
void RSSWidget::addRss()

View File

@ -88,10 +88,13 @@ SiteInfoWidget::SiteInfoWidget(QupZilla* mainClass, QWidget* parent)
void SiteInfoWidget::showAt(QWidget* _parent)
{
show();
layout()->invalidate();
layout()->activate();
QPoint p = _parent->mapToGlobal(QPoint(0, 0));
move(p.x(), p.y() + _parent->height());
show();
}
SiteInfoWidget::~SiteInfoWidget()

View File

@ -1,6 +1,7 @@
<html>
<head>
<title>Link Tests</title>
<link rel="alternate" type="application/rss+xml" title="QupZilla - RSS -- Very loooong long long long long long long title title title title title title" href="http://blog.qupzilla.com/feeds/posts/default?alt=rss">
</head>
<!--
Original file used from kWebKitPart (https://projects.kde.org/projects/extragear/base/kwebkitpart)