diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-15 00:35:58 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-15 00:35:58 +0100 |
commit | 2660fff9e6191808aa83197639a663b73a27bbfa (patch) | |
tree | e01930c4202d87c5b74f701938a0004a952425a1 /plugins/ProfileEditor/profileeditorplugin.cpp | |
parent | Initial plugins testing (diff) | |
download | smolbote-2660fff9e6191808aa83197639a663b73a27bbfa.tar.xz |
Moved ProfileView to ProfileEditorPlugin
Diffstat (limited to 'plugins/ProfileEditor/profileeditorplugin.cpp')
-rw-r--r-- | plugins/ProfileEditor/profileeditorplugin.cpp | 13 |
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; } |