2017-12-19 02:16:01 +01:00
|
|
|
#pragma once
|
|
|
|
|
2018-06-26 14:09:39 +02:00
|
|
|
#include "widgets/AccountSwitchWidget.hpp"
|
2017-12-19 02:16:01 +01:00
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
2019-09-01 14:13:44 +02:00
|
|
|
class AccountSwitchPopup : public QWidget
|
2017-12-19 02:16:01 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-09-01 14:13:44 +02:00
|
|
|
AccountSwitchPopup(QWidget *parent = nullptr);
|
2017-12-19 02:16:01 +01:00
|
|
|
|
|
|
|
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;
|
2018-07-06 19:23:47 +02:00
|
|
|
} ui_;
|
2017-12-19 02:16:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|