mirror-chatterino2/src/widgets/accountswitchpopupwidget.hpp
Rasmus Karlsson 1a870685b0 Implement the "inline" account switch button
Make the account switch listview into a widget
2017-12-19 02:17:01 +01:00

30 lines
499 B
C++

#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;
private:
struct {
AccountSwitchWidget *accountSwitchWidget = nullptr;
} ui;
};
} // namespace widgets
} // namespace chatterino