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:
|
|
|
|
virtual void focusOutEvent(QFocusEvent *event) override final;
|
2018-01-17 02:22:57 +01:00
|
|
|
virtual void paintEvent(QPaintEvent *event) override;
|
2017-12-19 02:16:01 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
struct {
|
|
|
|
AccountSwitchWidget *accountSwitchWidget = nullptr;
|
|
|
|
} ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace widgets
|
|
|
|
} // namespace chatterino
|