mirror-chatterino2/src/widgets/dialogs/QualityPopup.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
639 B
C++
Raw Normal View History

2018-01-28 18:05:01 +01:00
#pragma once
#include "widgets/BasePopup.hpp"
#include <QComboBox>
#include <QDialogButtonBox>
2017-12-17 16:45:15 +01:00
#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;
2017-12-17 16:45:15 +01:00
private:
2018-07-06 19:23:47 +02:00
void okButtonClicked();
void cancelButtonClicked();
struct {
QVBoxLayout *vbox;
QComboBox *selector;
QDialogButtonBox *buttonBox;
2018-06-11 15:04:54 +02:00
} ui_;
2017-12-17 16:45:15 +01:00
QString channelURL_;
};
2017-12-17 16:45:15 +01:00
} // namespace chatterino