|
26 | 26 | #include "util/StreamerMode.hpp"
|
27 | 27 | #include "widgets/helper/ChannelView.hpp"
|
28 | 28 | #include "widgets/helper/EffectLabel.hpp"
|
| 29 | +#include "widgets/helper/InvisibleSizeGrip.hpp" |
29 | 30 | #include "widgets/helper/Line.hpp"
|
30 | 31 | #include "widgets/Label.hpp"
|
31 | 32 | #include "widgets/Scrollbar.hpp"
|
@@ -246,8 +247,10 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent,
|
246 | 247 | this->shortcuts_ = getApp()->hotkeys->shortcutsForCategory(
|
247 | 248 | HotkeyCategory::PopupWindow, actions, this);
|
248 | 249 |
|
249 |
| - auto layout = LayoutCreator<QWidget>(this->getLayoutContainer()) |
250 |
| - .setLayoutType<QVBoxLayout>(); |
| 250 | + auto layers = LayoutCreator<QWidget>(this->getLayoutContainer()) |
| 251 | + .setLayoutType<QGridLayout>() |
| 252 | + .withoutMargin(); |
| 253 | + auto layout = layers.emplace<QVBoxLayout>(); |
251 | 254 |
|
252 | 255 | // first line
|
253 | 256 | auto head = layout.emplace<QHBoxLayout>().withoutMargin();
|
@@ -552,6 +555,13 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent,
|
552 | 555 | logs->setAlignment(this->ui_.noMessagesLabel, Qt::AlignHCenter);
|
553 | 556 | }
|
554 | 557 |
|
| 558 | + // size grip |
| 559 | + if (closeAutomatically) |
| 560 | + { |
| 561 | + layers->addWidget(new InvisibleSizeGrip(this), 0, 0, |
| 562 | + Qt::AlignRight | Qt::AlignBottom); |
| 563 | + } |
| 564 | + |
555 | 565 | this->installEvents();
|
556 | 566 | this->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Policy::Ignored);
|
557 | 567 | }
|
|
0 commit comments