aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/forms
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-06-07 12:34:16 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-06-07 12:34:16 +0200
commitaaca93be3d8f153dce3ae98d4d4787463f3210cf (patch)
treefb2eeabd937e056bd5006f3aca1f19b9776a31c3 /plugins/ProfileEditor/forms
parentCheck URL validity before searching (diff)
downloadsmolbote-aaca93be3d8f153dce3ae98d4d4787463f3210cf.tar.xz
Don't copy profiles into profile manager plugin
Diffstat (limited to 'plugins/ProfileEditor/forms')
-rw-r--r--plugins/ProfileEditor/forms/profilemanagerdialog.cpp8
-rw-r--r--plugins/ProfileEditor/forms/profilemanagerdialog.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/ProfileEditor/forms/profilemanagerdialog.cpp b/plugins/ProfileEditor/forms/profilemanagerdialog.cpp
index 13f974f..1c4d100 100644
--- a/plugins/ProfileEditor/forms/profilemanagerdialog.cpp
+++ b/plugins/ProfileEditor/forms/profilemanagerdialog.cpp
@@ -1,9 +1,9 @@
#include "profilemanagerdialog.h"
#include "profileview.h"
#include "ui_profilemanagerdialog.h"
-#include <QWebEngineProfile>
+#include <webprofile.h>
-ProfileManagerDialog::ProfileManagerDialog(QHash<QString, QWebEngineProfile *> &profiles, QWidget *parent)
+ProfileManagerDialog::ProfileManagerDialog(QHash<QString, WebProfile *> *profiles, QWidget *parent)
: QDialog(parent)
, ui(new Ui::ProfileManagerDialog)
, profiles(profiles)
@@ -13,7 +13,7 @@ ProfileManagerDialog::ProfileManagerDialog(QHash<QString, QWebEngineProfile *> &
connect(ui->listWidget, &QListWidget::itemPressed, this, &ProfileManagerDialog::showProfile);
showProfile(nullptr);
- for(auto i = profiles.constBegin(); i != profiles.constEnd(); ++i) {
+ for(auto i = profiles->constBegin(); i != profiles->constEnd(); ++i) {
ui->listWidget->addItem(i.key());
}
}
@@ -38,6 +38,6 @@ void ProfileManagerDialog::showProfile(QListWidgetItem *item)
}
ui->groupBox->setVisible(true);
- auto *v = new ProfileView(profiles.value(item->text()), this);
+ auto *v = new ProfileView(profiles->value(item->text()), this);
ui->groupBox->layout()->addWidget(v);
}
diff --git a/plugins/ProfileEditor/forms/profilemanagerdialog.h b/plugins/ProfileEditor/forms/profilemanagerdialog.h
index 9ce177d..ba315ce 100644
--- a/plugins/ProfileEditor/forms/profilemanagerdialog.h
+++ b/plugins/ProfileEditor/forms/profilemanagerdialog.h
@@ -9,14 +9,14 @@ namespace Ui
class ProfileManagerDialog;
}
-class QWebEngineProfile;
+class WebProfile;
class QListWidgetItem;
class ProfileManagerDialog : public QDialog
{
Q_OBJECT
public:
- explicit ProfileManagerDialog(QHash<QString, QWebEngineProfile *> &profiles, QWidget *parent = 0);
+ explicit ProfileManagerDialog(QHash<QString, WebProfile *> *profiles, QWidget *parent = 0);
~ProfileManagerDialog();
private slots:
@@ -24,7 +24,7 @@ private slots:
private:
Ui::ProfileManagerDialog *ui;
- const QHash<QString, QWebEngineProfile *> profiles;
+ const QHash<QString, WebProfile *> *profiles;
};
#endif // PROFILEMANAGERDIALOG_H