#pragma once #include "widgets/BasePopup.hpp" #include #include #include 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