Keyboard integration for Streamlink quality confirmation (#3169)
Co-authored-by: zneix <zneix@zneix.eu>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user