diff options
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; } |