mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
30 lines
580 B
C++
30 lines
580 B
C++
|
#pragma once
|
||
|
|
||
|
#include "util/DisplayBadge.hpp"
|
||
|
|
||
|
#include <QDialog>
|
||
|
|
||
|
namespace chatterino {
|
||
|
|
||
|
class BadgePickerDialog : public QDialog,
|
||
|
public std::enable_shared_from_this<BadgePickerDialog>
|
||
|
{
|
||
|
using QIconPtr = std::shared_ptr<QIcon>;
|
||
|
using BadgeOpt = boost::optional<DisplayBadge>;
|
||
|
|
||
|
public:
|
||
|
BadgePickerDialog(QList<DisplayBadge> badges, QWidget *parent = nullptr);
|
||
|
|
||
|
BadgeOpt getSelection() const
|
||
|
{
|
||
|
return this->currentBadge_;
|
||
|
}
|
||
|
|
||
|
private:
|
||
|
QComboBox *dropdown_;
|
||
|
|
||
|
BadgeOpt currentBadge_;
|
||
|
};
|
||
|
|
||
|
} // namespace chatterino
|