Implement the "inline" account switch button

Make the account switch listview into a widget
This commit is contained in:
Rasmus Karlsson
2017-12-19 02:16:01 +01:00
parent 4010c49c84
commit 1a870685b0
9 changed files with 223 additions and 47 deletions
+29
View File
@@ -0,0 +1,29 @@
#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