mirror-chatterino2/src/widgets/qualitypopup.hpp

36 lines
705 B
C++
Raw Normal View History

2018-01-28 18:05:01 +01:00
#pragma once
#include "basewindow.hpp"
#include <QComboBox>
#include <QDialogButtonBox>
#include <QPushButton>
2017-12-17 16:45:15 +01:00
#include <QVBoxLayout>
namespace chatterino {
namespace widgets {
class QualityPopup : public BaseWindow
{
public:
QualityPopup(const QString &_channelName, QStringList options);
static void showDialog(const QString &_channelName, QStringList options);
2017-12-17 16:45:15 +01:00
private:
struct {
QVBoxLayout vbox;
QComboBox selector;
QDialogButtonBox buttonBox;
QPushButton okButton;
QPushButton cancelButton;
} ui;
2017-12-17 16:45:15 +01:00
QString channelName;
void okButtonClicked();
void cancelButtonClicked();
};
2017-12-17 16:45:15 +01:00
} // namespace widgets
} // namespace chatterino