3bf1756579
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com> Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
20 lines
406 B
C++
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
|