#ifndef BOOL_H #define BOOL_H #include #include #include #include #include "Field.h" class Bool : public Field { public: Bool(QWidget *parent, int db_id, int PropId, QString label = QString(), QGridLayout *layout = NULL, int row = 0, int col = 0); Bool(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 1; } private: QCheckBox *checkBox; }; #endif