aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/profileeditorplugin.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-01-15 00:35:58 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-01-15 00:35:58 +0100
commit2660fff9e6191808aa83197639a663b73a27bbfa (patch)
treee01930c4202d87c5b74f701938a0004a952425a1 /plugins/ProfileEditor/profileeditorplugin.cpp
parentInitial plugins testing (diff)
downloadsmolbote-2660fff9e6191808aa83197639a663b73a27bbfa.tar.xz
Moved ProfileView to ProfileEditorPlugin
Diffstat (limited to 'plugins/ProfileEditor/profileeditorplugin.cpp')
-rw-r--r--plugins/ProfileEditor/profileeditorplugin.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/plugins/ProfileEditor/profileeditorplugin.cpp b/plugins/ProfileEditor/profileeditorplugin.cpp
index 1f4f16e..e0b0af1 100644
--- a/plugins/ProfileEditor/profileeditorplugin.cpp
+++ b/plugins/ProfileEditor/profileeditorplugin.cpp
@@ -7,21 +7,12 @@
*/
#include "profileeditorplugin.h"
-#include <QLabel>
-#include <QVBoxLayout>
+#include "forms/profileview.h"
QWidget *ProfileEditorPlugin::createWidget(QWebEngineProfile *profile, QWidget *parent)
{
- QWidget *widget = new QWidget(parent);
+ auto *widget = new ProfileView(profile, parent);
widget->setWindowFlags(Qt::ToolTip);
widget->setVisible(false);
- auto *layout = new QVBoxLayout(widget);
- widget->setLayout(layout);
-
- QLabel *storageName_label = new QLabel(profile->storageName(), widget);
- if(storageName_label->text().isEmpty())
- storageName_label->setText(tr("Off-the-record"));
- layout->addWidget(storageName_label);
-
return widget;
}