mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +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)
|
void BookmarksWidget::showAt(QWidget* _parent)
|
||||||
{
|
{
|
||||||
show();
|
layout()->invalidate();
|
||||||
|
layout()->activate();
|
||||||
|
|
||||||
QPoint p = _parent->mapToGlobal(QPoint(0, 0));
|
QPoint p = _parent->mapToGlobal(QPoint(0, 0));
|
||||||
move((p.x() + _parent->width()) - width(), p.y() + _parent->height());
|
move((p.x() + _parent->width()) - width(), p.y() + _parent->height());
|
||||||
|
|
||||||
|
show();
|
||||||
}
|
}
|
||||||
|
|
||||||
BookmarksWidget::~BookmarksWidget()
|
BookmarksWidget::~BookmarksWidget()
|
||||||
|
|
|
@ -74,7 +74,8 @@ RSSWidget::RSSWidget(WebView* view, QWidget* parent)
|
||||||
|
|
||||||
void RSSWidget::showAt(QWidget* _parent)
|
void RSSWidget::showAt(QWidget* _parent)
|
||||||
{
|
{
|
||||||
show();
|
layout()->invalidate();
|
||||||
|
layout()->activate();
|
||||||
|
|
||||||
const QPoint &widgetPos = _parent->mapToGlobal(QPoint(0, 0));
|
const QPoint &widgetPos = _parent->mapToGlobal(QPoint(0, 0));
|
||||||
|
|
||||||
|
@ -83,6 +84,8 @@ void RSSWidget::showAt(QWidget* _parent)
|
||||||
newPos.setY(widgetPos.y() + _parent->height());
|
newPos.setY(widgetPos.y() + _parent->height());
|
||||||
|
|
||||||
move(newPos);
|
move(newPos);
|
||||||
|
|
||||||
|
show();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RSSWidget::addRss()
|
void RSSWidget::addRss()
|
||||||
|
|
|
@ -88,10 +88,13 @@ SiteInfoWidget::SiteInfoWidget(QupZilla* mainClass, QWidget* parent)
|
||||||
|
|
||||||
void SiteInfoWidget::showAt(QWidget* _parent)
|
void SiteInfoWidget::showAt(QWidget* _parent)
|
||||||
{
|
{
|
||||||
show();
|
layout()->invalidate();
|
||||||
|
layout()->activate();
|
||||||
|
|
||||||
QPoint p = _parent->mapToGlobal(QPoint(0, 0));
|
QPoint p = _parent->mapToGlobal(QPoint(0, 0));
|
||||||
move(p.x(), p.y() + _parent->height());
|
move(p.x(), p.y() + _parent->height());
|
||||||
|
|
||||||
|
show();
|
||||||
}
|
}
|
||||||
|
|
||||||
SiteInfoWidget::~SiteInfoWidget()
|
SiteInfoWidget::~SiteInfoWidget()
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Link Tests</title>
|
<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>
|
</head>
|
||||||
<!--
|
<!--
|
||||||
Original file used from kWebKitPart (https://projects.kde.org/projects/extragear/base/kwebkitpart)
|
Original file used from kWebKitPart (https://projects.kde.org/projects/extragear/base/kwebkitpart)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user