3 * \file lengthvalidator.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
12 #ifndef LENGTHVALIDATOR_H
13 #define LENGTHVALIDATOR_H
15 #include "lyxlength.h"
16 #include <qvalidator.h>
21 class Q_EXPORT LengthValidator : public QValidator
25 LengthValidator(QWidget * parent, const char *name = 0);
27 QValidator::State validate(QString &, int &) const;
29 void setBottom(LyXLength);
30 LyXLength bottom() const { return b_; }
33 #if defined(Q_DISABLE_COPY)
34 LengthValidator( const LengthValidator & );
35 LengthValidator& operator=( const LengthValidator & );
42 # endif // NOT LENGTHVALIDATOR_H