summary refs log tree commit diff
path: root/src/ui/OverlayModal.cpp
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-20 12:02:35 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-20 12:02:35 +0300
commitd7e5171bfabf48e69112190b7096268222979c1c (patch)
tree89e09ff0189dbd87f7f203da0a53a52ccbb7fa2a /src/ui/OverlayModal.cpp
parentAdd user avatar after the 'encryption is enabled' message (diff)
downloadnheko-d7e5171bfabf48e69112190b7096268222979c1c.tar.xz
Create user profile modal
Diffstat (limited to 'src/ui/OverlayModal.cpp')
-rw-r--r--src/ui/OverlayModal.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/OverlayModal.cpp b/src/ui/OverlayModal.cpp
index 6aa16b07..41e07a91 100644
--- a/src/ui/OverlayModal.cpp
+++ b/src/ui/OverlayModal.cpp
@@ -25,11 +25,11 @@ OverlayModal::OverlayModal(QWidget *parent, QWidget *content)
   , content_{content}
   , color_{QColor(30, 30, 30, 170)}
 {
-        auto layout = new QVBoxLayout();
-        layout->addWidget(content);
-        layout->setAlignment(Qt::AlignCenter);
-
-        setLayout(layout);
+        layout_ = new QVBoxLayout(this);
+        layout_->addWidget(content);
+        layout_->setSpacing(0);
+        layout_->setContentsMargins(10, 40, 10, 20);
+        setContentAlignment(Qt::AlignTop | Qt::AlignHCenter);
 
         content->setFocus();
 }