Files
chatterino2/src/widgets/helper/TrimRegExpValidator.hpp
2022-05-16 09:42:17 +00:00

20 lines
406 B
C++

#pragma once
#include <QRegularExpression>
#include <QRegularExpressionValidator>
namespace chatterino {
class TrimRegExpValidator : public QRegularExpressionValidator
{
Q_OBJECT
public:
TrimRegExpValidator(const QRegularExpression &re,
QObject *parent = nullptr);
QValidator::State validate(QString &input, int &pos) const override;
};
} // namespace chatterino