aboutsummaryrefslogtreecommitdiff
path: root/src/forms
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-01-13 15:16:45 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-01-13 15:16:45 +0100
commit8485cca81df18f194af53ad6cbda43aaa7eaccf9 (patch)
treeb2319fc2f3b67de74686d050d75d9c146d9e2bac /src/forms
parentWriting BookmarksModel to xbel (diff)
downloadsmolbote-8485cca81df18f194af53ad6cbda43aaa7eaccf9.tar.xz
Multithreaded saving during shutdown
Diffstat (limited to 'src/forms')
-rw-r--r--src/forms/cookiesform.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/forms/cookiesform.cpp b/src/forms/cookiesform.cpp
index cf2bcb8..52fb5a2 100644
--- a/src/forms/cookiesform.cpp
+++ b/src/forms/cookiesform.cpp
@@ -8,7 +8,6 @@
#include "cookiesform.h"
#include "ui_cookiesform.h"
-
#include <QDateTime>
CookiesForm::CookiesForm(QWebEngineCookieStore *store, QWidget *parent)
@@ -19,8 +18,8 @@ CookiesForm::CookiesForm(QWebEngineCookieStore *store, QWidget *parent)
ui->setupUi(this);
ui->treeWidget->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
- connect(store, SIGNAL(cookieAdded(QNetworkCookie)), this, SLOT(addCookie(QNetworkCookie)));
- connect(ui->treeWidget, SIGNAL(currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)), this, SLOT(showDetails(QTreeWidgetItem *, QTreeWidgetItem *)));
+ connect(store, &QWebEngineCookieStore::cookieAdded, this, &CookiesForm::addCookie);
+ connect(ui->treeWidget, &QTreeWidget::currentItemChanged, this, &CookiesForm::showDetails);
}
CookiesForm::~CookiesForm()