#ifndef BIGCHARSTRING_H #define BIGCHARSTRING_H #include #include #include #include #include #include "Field.h" class BigCharString : public Field { Q_OBJECT public: BigCharString(QWidget *parent, int db_id, int PropId, QString label = QString(), QGridLayout *layout = NULL, int row = 0, int col = 0); BigCharString(QWidget *parent, int db_id, int PropId, QString value, QString label = QString(), QGridLayout *layout = NULL, int row = 0, int col = 0); void SetValue(QVariant value); protected: int calculateLength() { return value.toString().length(); } private: QTextEdit *textEdit; private slots: // QTextEdit does not put QString in its textChanged // signal because consistency is for assholes. void receiveTextChange(); }; #endif