aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webprofilemanager.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2019-11-22 19:34:09 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2019-11-22 20:05:31 +0200
commit62c3898d8e18a872700948c46a61592b315e79de (patch)
tree81f03b3012c07510202065f03aaec8cd1f9591fb /src/webengine/webprofilemanager.h
parentConfiguration: only try reading it when cfg file can be opened (diff)
downloadsmolbote-62c3898d8e18a872700948c46a61592b315e79de.tar.xz
WebProfile refactoring
- Remove WebProfileManager::Profile::value - Make WebProfile constructors protected, and WebProfileManager friend class
Diffstat (limited to 'src/webengine/webprofilemanager.h')
-rw-r--r--src/webengine/webprofilemanager.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/webengine/webprofilemanager.h b/src/webengine/webprofilemanager.h
index 3e82936..2d9cd29 100644
--- a/src/webengine/webprofilemanager.h
+++ b/src/webengine/webprofilemanager.h
@@ -18,13 +18,6 @@
#include <QSettings>
#include <functional>
-struct ProfileDefault_t
-{
- QString search;
- QString homepage;
- QString newtab;
-};
-
class WebProfileManager : public QObject
{
Q_OBJECT
@@ -68,14 +61,6 @@ private:
WebProfile *ptr = nullptr;
QSettings *settings = nullptr;
bool selfDestruct = false;
-
- QVariant value(const QString &key, const QVariant &defaultValue) const
- {
- if(settings == nullptr)
- return defaultValue;
- else
- return settings->value(key, defaultValue);
- }
};
QMap<QString, Profile> profiles;