BuildmLearn Toolkit  2.0.4
BuildmLearn Toolkit is an easy-to-use program that helps users make mobile apps without any knowledge of application development.
 All Classes Functions Enumerations Groups Pages
maxlengthtextedit.h
1 #ifndef MAXLENGTHTEXTEDIT_H
2 #define MAXLENGTHTEXTEDIT_H
3 
4 #include <QTextEdit>
5 
6 
7 class MaxLengthTextEdit : public QTextEdit {
8  Q_OBJECT
9 
10  public:
11  explicit MaxLengthTextEdit(QWidget *parent = 0);
12  virtual ~MaxLengthTextEdit();
13 
14  int maxLength() const;
15  void setMaxLength(int max_length);
16 
17  private slots:
18  void checkLength();
19  void reallyCheckLength();
20 
21  private:
22  int m_maxLength;
23 
24 };
25 
26 #endif // MAXLENGTHTEXTEDIT_H