Keyboard integration for Streamlink quality confirmation (#3169)

Co-authored-by: zneix <zneix@zneix.eu>
This commit is contained in:
pajlada
2021-08-15 15:59:52 +02:00
committed by GitHub
parent b2d9b678a2
commit 1d664f88e5
5 changed files with 111 additions and 31 deletions
+9 -9
View File
@@ -4,7 +4,6 @@
#include <QComboBox>
#include <QDialogButtonBox>
#include <QPushButton>
#include <QVBoxLayout>
namespace chatterino {
@@ -12,22 +11,23 @@ namespace chatterino {
class QualityPopup : public BasePopup
{
public:
QualityPopup(const QString &_channelName, QStringList options);
static void showDialog(const QString &_channelName, QStringList options);
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;
QPushButton okButton;
QPushButton cancelButton;
QVBoxLayout *vbox;
QComboBox *selector;
QDialogButtonBox *buttonBox;
} ui_;
QString channelName_;
QString channelURL_;
};
} // namespace chatterino