diff options
Diffstat (limited to 'src/rekonqwindow_class.cpp')
-rw-r--r-- | src/rekonqwindow_class.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
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<rekonq::DefaultUrl, rekonq::OpenType>(&RekonqWindow::loadUrl)); - connect(ui->navigationToolBar, &NavigationToolBar::loadRequestedUrl, this, - qOverload<const QUrl &, rekonq::OpenType>(&RekonqWindow::loadUrl)); - connect(ui->bookmarksPanel, &BookmarksPanel::loadUrl, this, - qOverload<const QUrl &, rekonq::OpenType>(&RekonqWindow::loadUrl)); - connect(ui->bookmarksToolBar, &BookmarkToolBar::loadUrl, this, - qOverload<const QUrl &, rekonq::OpenType>(&RekonqWindow::loadUrl)); - connect(ui->menuBookmarks, &BookmarksMenu::loadUrl, this, - qOverload<const QUrl &, rekonq::OpenType>(&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 |