2017-12-19 02:16:01 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "widgets/accountswitchwidget.hpp"
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
namespace widgets {
|
|
|
|
|
|
|
|
class AccountSwitchPopupWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
AccountSwitchPopupWidget(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
void refresh();
|
|
|
|
|
|
|
|
protected:
|
2018-04-03 02:55:32 +02:00
|
|
|
void focusOutEvent(QFocusEvent *event) final;
|
|
|
|
void paintEvent(QPaintEvent *event) override;
|
2017-12-19 02:16:01 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
struct {
|
|
|
|
AccountSwitchWidget *accountSwitchWidget = nullptr;
|
|
|
|
} ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace widgets
|
|
|
|
} // namespace chatterino
|