#ifndef UNSIGNEDINT_H #define UNSIGNEDINT_H #include #include #include #include #include "Field.h" class UnsignedInt : public Field { public: UnsignedInt(QWidget *parent, int db_id, int PropId, QString label = QString(), QGridLayout *layout = NULL, int row = 0, int col = 0); UnsignedInt(QWidget *parent, int db_id, int PropId, int value, QString label = QString(), QGridLayout *layout = NULL, int row = 0, int col = 0); void SetValue(QVariant value); protected: int calculateLength() { return value.toInt() < 65536 ? 2 : 4; } private: QLineEdit *lineEdit; }; #endif