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
+22
View File
@@ -0,0 +1,22 @@
#pragma once
#include <QListWidget>
namespace chatterino {
namespace widgets {
class AccountSwitchWidget : public QListWidget
{
Q_OBJECT
public:
explicit AccountSwitchWidget(QWidget *parent = nullptr);
void refresh();
private:
void refreshSelection();
};
} // namespace widgets
} // namespace chatterino