fix: UserInfoPopup now requires a split as its parent (#5034)

Co-authored-by: Nerixyz <nerixdev@outlook.de>
This commit is contained in:
pajlada
2023-12-17 12:53:06 +01:00
committed by GitHub
parent d016a16269
commit aa11a24163
5 changed files with 14 additions and 14 deletions
+3 -4
View File
@@ -1,4 +1,4 @@
#include "UserInfoPopup.hpp"
#include "widgets/dialogs/UserInfoPopup.hpp"
#include "Application.hpp"
#include "common/Channel.hpp"
@@ -134,9 +134,8 @@ namespace {
} // namespace
UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent,
Split *split)
: DraggablePopup(closeAutomatically, parent)
UserInfoPopup::UserInfoPopup(bool closeAutomatically, Split *split)
: DraggablePopup(closeAutomatically, split)
, split_(split)
, closeAutomatically_(closeAutomatically)
{
+5 -2
View File
@@ -23,8 +23,11 @@ class UserInfoPopup final : public DraggablePopup
Q_OBJECT
public:
UserInfoPopup(bool closeAutomatically, QWidget *parent,
Split *split = nullptr);
/**
* @param closeAutomatically Decides whether the popup should close when it loses focus
* @param split Will be used as the popup's parent. Must not be null
*/
UserInfoPopup(bool closeAutomatically, Split *split);
void setData(const QString &name, const ChannelPtr &channel);
void setData(const QString &name, const ChannelPtr &contextChannel,