diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-17 13:25:38 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-17 13:25:38 +0100 |
commit | 7eb573a67ea883228ff7905190ff46c0f29593b1 (patch) | |
tree | dcad511c1c844419b107f127ee07203e379b62ff /src/forms/profileview.cpp | |
parent | Fixed release builds defining QT_DEBUG (diff) | |
download | smolbote-7eb573a67ea883228ff7905190ff46c0f29593b1.tar.xz |
ProfileView dialog
Diffstat (limited to 'src/forms/profileview.cpp')
-rw-r--r-- | src/forms/profileview.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 <QFormLayout> 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() |