summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-09-18 21:42:42 +0300
committeraqua <aqua@iserlohn-fortress.net>2022-09-18 21:42:42 +0300
commit0b167726780aac72379a444e16149b84c40d2458 (patch)
treea2bed6c17f46e3ae02920dd4554c05c71232d311 /src/urlbar
parentFix compiler warnings (diff)
downloadrekonq-0b167726780aac72379a444e16149b84c40d2458.tar.xz
Remove UrlBar::loadRequestedUrl slot
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/urlbar.cpp18
-rw-r--r--src/urlbar/urlbar.hpp2
2 files changed, 0 insertions, 20 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index 4489765c..36f58c85 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -66,18 +66,9 @@ UrlBar::UrlBar(QWidget *parent)
// connect(_tab, SIGNAL(loadProgressing()), this, SLOT(update()));
// connect(_tab, SIGNAL(urlChanged(QUrl)), this, SLOT(setUrl(QUrl)));
- connect(this, &QLineEdit::returnPressed, this, [this]() { loadRequestedUrl(QUrl::fromUserInput(text())); });
// bookmark icon
// connect(BookmarkManager::self(), SIGNAL(bookmarksUpdated()), this, SLOT(updateRightIcons()));
-
- // suggestions
- // connect(_box.data(), SIGNAL(chosenUrl(QUrl,Rekonq::OpenType)), this,
- // SLOT(loadRequestedUrl(QUrl,Rekonq::OpenType))); connect(this, SIGNAL(textEdited(QString)), this,
- // SLOT(detectTypedString(QString)));
-
- //_suggestionTimer->setSingleShot(true);
- // connect(_suggestionTimer, SIGNAL(timeout()), this, SLOT(suggest()));
}
// -----------------------------------------------------------------------------------------------------------
@@ -105,15 +96,6 @@ void UrlBar::setUrl(const QUrl &url)
setCursorPosition(0);
}
-void UrlBar::loadRequestedUrl(const QUrl &url, rekonq::OpenType)
-{
- clearFocus();
- setText(url.toString());
-
- Q_CHECK_PTR(m_currentView);
- m_currentView->load(url);
-}
-
void UrlBar::loadStarted()
{
Q_ASSERT(sender() == m_currentView);
diff --git a/src/urlbar/urlbar.hpp b/src/urlbar/urlbar.hpp
index 7b6cc975..366509ba 100644
--- a/src/urlbar/urlbar.hpp
+++ b/src/urlbar/urlbar.hpp
@@ -57,8 +57,6 @@ public slots:
*/
// void manageBookmarks();
- [[deprecated]] void loadRequestedUrl(const QUrl &url, rekonq::OpenType = rekonq::CurrentTab);
-
void loadStarted();
void loadProgress(int);
void loadFinished();