mirror-chatterino2/src/widgets/qualitypopup.hpp

43 lines
854 B
C++
Raw Normal View History

#ifndef QUALITYPOPUP_H
#define QUALITYPOPUP_H
#include <QComboBox>
#include <QDialogButtonBox>
2017-12-17 16:45:15 +01:00
#include <QHBoxLayout>
#include <QPushButton>
2017-12-17 16:45:15 +01:00
#include <QVBoxLayout>
#include <QWidget>
#include "basewidget.hpp"
namespace chatterino {
namespace widgets {
2017-12-17 16:45:15 +01:00
class QualityPopup : public BaseWidget
{
public:
QualityPopup(const QString &channel, const QString &path, QStringList options);
static void showDialog(const QString &channel, const QString &path, 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 channel;
QString path;
void okButtonClicked();
void cancelButtonClicked();
};
2017-12-17 16:45:15 +01:00
} // namespace widgets
} // namespace chatterino
2017-12-17 16:45:15 +01:00
#endif // QUALITYPOPUP_H