KShare/filenamevalidator.hpp

13 lines
294 B
C++
Raw Normal View History

#ifndef FILENAMEVALIDATOR_HPP
#define FILENAMEVALIDATOR_HPP
#include <QValidator>
class FilenameValidator : public QValidator {
public:
FilenameValidator(QObject *parent = nullptr);
QValidator::State validate(QString &input, int &) const override;
};
#endif // FILENAMEVALIDATOR_HPP