mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
1a870685b0
Make the account switch listview into a widget
30 lines
499 B
C++
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
|