2018-01-28 18:05:01 +01:00
|
|
|
#pragma once
|
2017-09-11 23:35:59 +02:00
|
|
|
|
2020-10-31 16:42:48 +01:00
|
|
|
#include "widgets/BasePopup.hpp"
|
2018-04-14 21:59:51 +02:00
|
|
|
|
2017-09-11 23:35:59 +02:00
|
|
|
#include <QComboBox>
|
|
|
|
#include <QDialogButtonBox>
|
2017-12-17 16:45:15 +01:00
|
|
|
#include <QVBoxLayout>
|
2017-09-11 23:35:59 +02:00
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
2020-10-31 16:42:48 +01:00
|
|
|
class QualityPopup : public BasePopup
|
2017-09-11 23:35:59 +02:00
|
|
|
{
|
|
|
|
public:
|
2021-08-15 15:59:52 +02:00
|
|
|
QualityPopup(const QString &channelURL, QStringList options);
|
|
|
|
static void showDialog(const QString &channelURL, QStringList options);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void keyPressEvent(QKeyEvent *e) override;
|
2017-12-17 16:45:15 +01:00
|
|
|
|
2017-09-11 23:35:59 +02:00
|
|
|
private:
|
2018-07-06 19:23:47 +02:00
|
|
|
void okButtonClicked();
|
|
|
|
void cancelButtonClicked();
|
|
|
|
|
2017-09-11 23:35:59 +02:00
|
|
|
struct {
|
2021-08-15 15:59:52 +02:00
|
|
|
QVBoxLayout *vbox;
|
|
|
|
QComboBox *selector;
|
|
|
|
QDialogButtonBox *buttonBox;
|
2023-09-09 13:11:19 +02:00
|
|
|
} ui_{};
|
2017-12-17 16:45:15 +01:00
|
|
|
|
2021-08-15 15:59:52 +02:00
|
|
|
QString channelURL_;
|
2017-09-11 23:35:59 +02:00
|
|
|
};
|
|
|
|
|
2017-12-17 16:45:15 +01:00
|
|
|
} // namespace chatterino
|