diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2019-01-16 16:52:07 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2019-01-16 16:52:07 +0100 |
commit | 2a696a57abafb25978aef1af5758fe75b706d1f0 (patch) | |
tree | 9c9b3468398b16711a573e0c8b87ae2ad03100b4 /src/mainwindow | |
parent | Rewrite lib/urlfilter (diff) | |
download | smolbote-2a696a57abafb25978aef1af5758fe75b706d1f0.tar.xz |
Rewrite lib/web to lib/webprofile
- libweb was supposed to be a general QtWebEngine wrapper, but only
turned out to do profiles and profile management. The new name should
make this more obvious.
- Renamed ProfileManager to WebProfileManager, and cut out duplicate
code.
- Temporary profiles: temporary profiles are not kept after closing the
browser.
Diffstat (limited to 'src/mainwindow')
-rw-r--r-- | src/mainwindow/mainwindow.cpp | 2 | ||||
-rw-r--r-- | src/mainwindow/menubar.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index a5f1c90..71b594a 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -12,7 +12,7 @@ #include "config.h" #include "configuration.h" #include "menubar.h" -#include "profilemanager.h" +#include "webprofilemanager.h" #include "session/session.h" #include "session/sessiondialog.h" #include "subwindow/subwindow.h" diff --git a/src/mainwindow/menubar.cpp b/src/mainwindow/menubar.cpp index 8e2180d..117641f 100644 --- a/src/mainwindow/menubar.cpp +++ b/src/mainwindow/menubar.cpp @@ -12,7 +12,7 @@ #include "configuration.h" #include "downloadswidget.h" #include "mainwindow.h" -#include "profilemanager.h" +#include "webprofilemanager.h" #include "session/savesessiondialog.h" #include "session/sessiondialog.h" #include "subwindow/subwindow.h" @@ -344,9 +344,9 @@ MenuBar::MenuBar(const Configuration *config, MainWindow *parent) auto *_subwindow = parent->currentSubWindow(); if(_subwindow != nullptr) { - browser->getProfileManager()->profilePickerMenu(subwindowProfile, _subwindow->profile(), [_subwindow](WebProfile *profile) { + browser->getProfileManager()->profileMenu(subwindowProfile, [_subwindow](WebProfile *profile) { _subwindow->setProfile(profile); - }); + }, _subwindow->profile(), true); } }); } @@ -391,9 +391,9 @@ MenuBar::MenuBar(const Configuration *config, MainWindow *parent) pageProfile->clear(); if(parent->currentView != nullptr) { - browser->getProfileManager()->profilePickerMenu(pageProfile, parent->currentView->profile(), [parent](WebProfile *profile) { + browser->getProfileManager()->profileMenu(pageProfile, [parent](WebProfile *profile) { parent->currentView->setProfile(profile); - }); + }, parent->currentView->profile(), true); } }); |