mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
43 lines
854 B
C++
43 lines
854 B
C++
#ifndef QUALITYPOPUP_H
|
|
#define QUALITYPOPUP_H
|
|
|
|
#include <QComboBox>
|
|
#include <QDialogButtonBox>
|
|
#include <QHBoxLayout>
|
|
#include <QPushButton>
|
|
#include <QVBoxLayout>
|
|
#include <QWidget>
|
|
|
|
#include "basewidget.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
namespace widgets {
|
|
|
|
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);
|
|
|
|
private:
|
|
struct {
|
|
QVBoxLayout vbox;
|
|
QComboBox selector;
|
|
QDialogButtonBox buttonBox;
|
|
QPushButton okButton;
|
|
QPushButton cancelButton;
|
|
} ui;
|
|
|
|
QString channel;
|
|
QString path;
|
|
|
|
void okButtonClicked();
|
|
void cancelButtonClicked();
|
|
};
|
|
|
|
} // namespace widgets
|
|
} // namespace chatterino
|
|
|
|
#endif // QUALITYPOPUP_H
|