aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2021-03-06 15:32:18 +0100
committerFelix (xq) Queißner <git@mq32.de>2021-03-06 15:32:18 +0100
commit432563d958d001b88fd97cc38f93e592cb21fc0e (patch)
tree725ce1a2889500885bddcecfd6f7e0d30fc1329c /src/mainwindow.cpp
parent9457e720f24d8365ed6a1e82b016078b0bc17eb6 (diff)
Closes #190
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 6f39b42..8d78baf 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -365,26 +365,11 @@ void MainWindow::on_browser_tabs_currentChanged(int index)
updateWindowTitle();
}
-void MainWindow::on_favourites_view_doubleClicked(const QModelIndex &index)
-{
- if(auto url = kristall::favourites.getFavourite(index).destination; url.isValid()) {
- this->addNewTab(true, url);
- }
-}
-
void MainWindow::on_browser_tabs_tabCloseRequested(int index)
{
delete tabAt(index);
}
-void MainWindow::on_history_view_doubleClicked(const QModelIndex &index)
-{
- BrowserTab * tab = this->curTab();
- if(tab != nullptr) {
- tab->navigateBack(index);
- }
-}
-
void MainWindow::on_tab_titleChanged(const QString &title)
{
auto * tab = qobject_cast<BrowserTab*>(sender());
@@ -791,3 +776,18 @@ void MainWindow::on_actionClose_Window_triggered()
{
this->deleteLater();
}
+
+void MainWindow::on_favourites_view_activated(const QModelIndex &index)
+{
+ if(auto url = kristall::favourites.getFavourite(index).destination; url.isValid()) {
+ this->addNewTab(true, url);
+ }
+}
+
+void MainWindow::on_history_view_activated(const QModelIndex &index)
+{
+ BrowserTab * tab = this->curTab();
+ if(tab != nullptr) {
+ tab->navigateBack(index);
+ }
+}