From 35c551f7ff6a3dbb00b209d7388eaccde448dd2b Mon Sep 17 00:00:00 2001 From: aqua Date: Sun, 18 Sep 2022 22:42:52 +0300 Subject: RekonqWindow: rename loadUrl slots --- src/rekonqwindow_class.cpp | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'src/rekonqwindow_class.cpp') diff --git a/src/rekonqwindow_class.cpp b/src/rekonqwindow_class.cpp index 66da5ff5..2509fee2 100644 --- a/src/rekonqwindow_class.cpp +++ b/src/rekonqwindow_class.cpp @@ -34,16 +34,11 @@ RekonqWindow::RekonqWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::Re ui->bookmarksToolBar->setModel(Application::instance()->bookmarks()); ui->menuBookmarks->setModel(Application::instance()->bookmarks()); #endif - connect(ui->navigationToolBar, &NavigationToolBar::loadUrl, this, - qOverload(&RekonqWindow::loadUrl)); - connect(ui->navigationToolBar, &NavigationToolBar::loadRequestedUrl, this, - qOverload(&RekonqWindow::loadUrl)); - connect(ui->bookmarksPanel, &BookmarksPanel::loadUrl, this, - qOverload(&RekonqWindow::loadUrl)); - connect(ui->bookmarksToolBar, &BookmarkToolBar::loadUrl, this, - qOverload(&RekonqWindow::loadUrl)); - connect(ui->menuBookmarks, &BookmarksMenu::loadUrl, this, - qOverload(&RekonqWindow::loadUrl)); + connect(ui->navigationToolBar, &NavigationToolBar::loadUrl, this, &RekonqWindow::loadDefaultUrl); + connect(ui->navigationToolBar, &NavigationToolBar::loadRequestedUrl, this, &RekonqWindow::loadRequestedUrl); + connect(ui->bookmarksPanel, &BookmarksPanel::loadUrl, this, &RekonqWindow::loadRequestedUrl); + connect(ui->bookmarksToolBar, &BookmarkToolBar::loadUrl, this, &RekonqWindow::loadRequestedUrl); + connect(ui->menuBookmarks, &BookmarksMenu::loadUrl, this, &RekonqWindow::loadRequestedUrl); // ::setCurrentView connect(ui->tabToolBar, &TabToolBar::currentViewChanged, this, [this](RekonqView *view) { @@ -67,7 +62,7 @@ RekonqWindow::RekonqWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::Re } #endif connect(ui->actionNewTab, &QAction::triggered, this, - [this]() { loadUrl(rekonq::NewTabPage, rekonq::NewFocusedTab); }); + [this]() { loadDefaultUrl(rekonq::NewTabPage, rekonq::NewFocusedTab); }); connect(ui->actionCloseTab, &QAction::triggered, ui->tabToolBar, &TabToolBar::closeCurrentTab); connect(ui->actionQuit, &QAction::triggered, qApp, &QApplication::quit); // edit menu -- cgit v1.2.1