mirror-chatterino2/src/widgets/dialogs/QualityPopup.hpp
pajlada 1d664f88e5
Keyboard integration for Streamlink quality confirmation (#3169)
Co-authored-by: zneix <zneix@zneix.eu>
2021-08-15 15:59:52 +02:00

34 lines
639 B
C++

#pragma once
#include "widgets/BasePopup.hpp"
#include <QComboBox>
#include <QDialogButtonBox>
#include <QVBoxLayout>
namespace chatterino {
class QualityPopup : public BasePopup
{
public:
QualityPopup(const QString &channelURL, QStringList options);
static void showDialog(const QString &channelURL, QStringList options);
protected:
void keyPressEvent(QKeyEvent *e) override;
private:
void okButtonClicked();
void cancelButtonClicked();
struct {
QVBoxLayout *vbox;
QComboBox *selector;
QDialogButtonBox *buttonBox;
} ui_;
QString channelURL_;
};
} // namespace chatterino