mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
b010d90689
What needs more work: - Make sure popup is gone if you click away - Add timeouts etc and make them work (relies on Channel being able to send messages)
35 lines
505 B
C++
35 lines
505 B
C++
#ifndef USERPOPUPWIDGET_H
|
|
#define USERPOPUPWIDGET_H
|
|
|
|
#include <QWidget>
|
|
|
|
#include <memory>
|
|
|
|
namespace Ui {
|
|
class UserPopup;
|
|
}
|
|
|
|
namespace chatterino {
|
|
|
|
class Channel;
|
|
|
|
namespace widgets {
|
|
|
|
class UserPopupWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
UserPopupWidget(std::shared_ptr<Channel> &&_channel);
|
|
|
|
void setName(const QString &name);
|
|
|
|
private:
|
|
Ui::UserPopup *ui;
|
|
|
|
std::shared_ptr<Channel> channel;
|
|
};
|
|
|
|
} // namespace widgets
|
|
} // namespace chatterino
|
|
|
|
#endif // USERPOPUPWIDGET_H
|