2018-01-28 18:05:01 +01:00
|
|
|
#pragma once
|
2017-09-11 23:35:59 +02:00
|
|
|
|
2018-06-26 15:11:45 +02:00
|
|
|
#include "widgets/BaseWindow.hpp"
|
2018-04-14 21:59:51 +02:00
|
|
|
|
2017-09-11 23:35:59 +02:00
|
|
|
#include <QComboBox>
|
|
|
|
#include <QDialogButtonBox>
|
|
|
|
#include <QPushButton>
|
2017-12-17 16:45:15 +01:00
|
|
|
#include <QVBoxLayout>
|
2017-09-11 23:35:59 +02:00
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
2018-01-14 21:55:36 +01:00
|
|
|
class QualityPopup : public BaseWindow
|
2017-09-11 23:35:59 +02:00
|
|
|
{
|
|
|
|
public:
|
2018-03-24 14:13:04 +01:00
|
|
|
QualityPopup(const QString &_channelName, QStringList options);
|
|
|
|
static void showDialog(const QString &_channelName, QStringList options);
|
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 {
|
|
|
|
QVBoxLayout vbox;
|
|
|
|
QComboBox selector;
|
|
|
|
QDialogButtonBox buttonBox;
|
|
|
|
QPushButton okButton;
|
|
|
|
QPushButton cancelButton;
|
2018-06-11 15:04:54 +02:00
|
|
|
} ui_;
|
2017-12-17 16:45:15 +01:00
|
|
|
|
2018-07-06 19:23:47 +02:00
|
|
|
QString channelName_;
|
2017-09-11 23:35:59 +02:00
|
|
|
};
|
|
|
|
|
2017-12-17 16:45:15 +01:00
|
|
|
} // namespace chatterino
|