Source code

Revision control

Copy as Markdown

// Copyright (C) 2017 Andre Hartmann <aha_1980@gmx.de>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef BITRATEBOX_H
#define BITRATEBOX_H
#include <QComboBox>
QT_BEGIN_NAMESPACE
class QIntValidator;
QT_END_NAMESPACE
class BitRateBox : public QComboBox
{
public:
explicit BitRateBox(QWidget *parent = nullptr);
~BitRateBox();
int bitRate() const;
bool isFlexibleDataRateEnabled() const;
void setFlexibleDateRateEnabled(bool enabled);
private slots:
void checkCustomSpeedPolicy(int idx);
private:
void fillBitRates();
bool m_isFlexibleDataRateEnabled = false;
QIntValidator *m_customSpeedValidator = nullptr;
};
#endif // BITRATEBOX_H