mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
WebPage: Remove now unused scheduleAdjustPage
This commit is contained in:
parent
6b39dc9cf0
commit
5f0f520a45
@ -166,20 +166,6 @@ void WebPage::setScrollPosition(const QPointF &pos)
|
||||
runJavaScript(QSL("window.scrollTo(%1, %2)").arg(v.x()).arg(v.y()), WebPage::SafeJsWorld);
|
||||
}
|
||||
|
||||
void WebPage::scheduleAdjustPage()
|
||||
{
|
||||
if (view()->isLoading()) {
|
||||
m_adjustingScheduled = true;
|
||||
}
|
||||
else {
|
||||
const QSize originalSize = view()->size();
|
||||
QSize newSize(originalSize.width() - 1, originalSize.height() - 1);
|
||||
|
||||
view()->resize(newSize);
|
||||
view()->resize(originalSize);
|
||||
}
|
||||
}
|
||||
|
||||
bool WebPage::isRunningLoop()
|
||||
{
|
||||
return m_runningLoop;
|
||||
|
@ -65,7 +65,6 @@ public:
|
||||
bool hasMultipleUsernames() const;
|
||||
QVector<PasswordEntry> autoFillData() const;
|
||||
|
||||
void scheduleAdjustPage();
|
||||
bool isRunningLoop();
|
||||
|
||||
bool isLoading() const;
|
||||
|
Loading…
Reference in New Issue
Block a user