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

34 lines
669 B
C++
Raw Normal View History

2018-01-28 18:05:01 +01:00
#pragma once
#include "widgets/BasePopup.hpp"
#include <QComboBox>
#include <QDialogButtonBox>
#include <QPushButton>
2017-12-17 16:45:15 +01:00
#include <QVBoxLayout>
namespace chatterino {
class QualityPopup : public BasePopup
{
public:
QualityPopup(const QString &_channelName, QStringList options);
static void showDialog(const QString &_channelName, QStringList options);
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;
QPushButton okButton;
QPushButton cancelButton;
2018-06-11 15:04:54 +02:00
} ui_;
2017-12-17 16:45:15 +01:00
2018-07-06 19:23:47 +02:00
QString channelName_;
};
2017-12-17 16:45:15 +01:00
} // namespace chatterino