diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-15 14:26:47 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-15 14:26:47 +0200 |
commit | e412f035b054612d00fdbc39e13a958cf5492fec (patch) | |
tree | 438b806b4d1a53be6761dc91acedc988e489de01 /plugins/ProfileEditor/profileeditorplugin.cpp | |
parent | Set download tooltip image preview width to 400 (diff) | |
download | smolbote-e412f035b054612d00fdbc39e13a958cf5492fec.tar.xz |
Profile editor plugin
Diffstat (limited to 'plugins/ProfileEditor/profileeditorplugin.cpp')
-rw-r--r-- | plugins/ProfileEditor/profileeditorplugin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/ProfileEditor/profileeditorplugin.cpp b/plugins/ProfileEditor/profileeditorplugin.cpp index d048875..7a92e51 100644 --- a/plugins/ProfileEditor/profileeditorplugin.cpp +++ b/plugins/ProfileEditor/profileeditorplugin.cpp @@ -9,10 +9,9 @@ #include "profileeditorplugin.h" #include "forms/profileview.h" -QWidget *ProfileEditorPlugin::createWidget(QWebEngineProfile *profile, QWidget *parent) +QDialog *ProfileEditorPlugin::createWidget(QWebEngineProfile *profile, QWidget *parent) { auto *widget = new ProfileView(profile, parent); - widget->setWindowFlags(Qt::ToolTip); - widget->setVisible(false); + widget->setAttribute(Qt::WA_DeleteOnClose, true); return widget; } |