mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Fix: Flickering when showing site info/bookmarks/rss widget in
addressbar
This commit is contained in:
parent
7037e562ae
commit
5c9383a54a
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user