2017-12-19 02:16:01 +01:00
|
|
|
#pragma once
|
|
|
|
|
2019-09-08 12:43:12 +02:00
|
|
|
#include "widgets/BaseWindow.hpp"
|
2017-12-19 02:16:01 +01:00
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
2022-12-31 15:41:01 +01:00
|
|
|
class AccountSwitchWidget;
|
|
|
|
|
2019-09-08 12:43:12 +02:00
|
|
|
class AccountSwitchPopup : public BaseWindow
|
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
|
|
|
|
2023-09-15 18:44:36 +02:00
|
|
|
void themeChangedEvent() 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
|