25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
532 B

  1. #ifndef COMPARATOR_H
  2. #define COMPARATOR_H
  3. #include "item.h"
  4. class Comparator : public Item
  5. {
  6. public:
  7. Comparator(const QString &type);
  8. QRectF boundingRect() const override;
  9. void paint(QPainter *painter,
  10. const QStyleOptionGraphicsItem *option,
  11. QWidget *) override;
  12. void setRegisterId(const QString &id) override;
  13. void setRegisterValue(const QString &registerId, quint16 value) override;
  14. private:
  15. QString registerId2_;
  16. quint16 registerValue2_ = 0;
  17. };
  18. #endif // COMPARATOR_H