From 7eb573a67ea883228ff7905190ff46c0f29593b1 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 17 Dec 2017 13:25:38 +0100 Subject: ProfileView dialog --- src/forms/profileview.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/forms/profileview.cpp') diff --git a/src/forms/profileview.cpp b/src/forms/profileview.cpp index 6977b61..5e02179 100644 --- a/src/forms/profileview.cpp +++ b/src/forms/profileview.cpp @@ -33,7 +33,7 @@ #include ProfileView::ProfileView(WebEngineProfile *profile, QWidget *parent) : - QWidget(parent), + QDialog(parent), ui(new Ui::ProfileView) { ui->setupUi(this); @@ -47,7 +47,8 @@ ProfileView::ProfileView(WebEngineProfile *profile, QWidget *parent) : this->m_profile->clearAllVisitedLinks(); }); - //connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(updateProfile())); + connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &ProfileView::updateProfile); + connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &ProfileView::close); } ProfileView::~ProfileView() -- cgit v1.2.1