chengxr 1 year ago
parent
commit
7d81dc5bfd
4 changed files with 36 additions and 0 deletions
  1. 6 0
      QFD/CCanvas/CMind.cpp
  2. 11 0
      QFD/CCanvas/CMind.h
  3. 5 0
      QFD/CCanvas/CRectItem.cpp
  4. 14 0
      QFD/CCanvas/CRectItem.h

+ 6 - 0
QFD/CCanvas/CMind.cpp

@@ -0,0 +1,6 @@
+#include "CMind.h"
+
+CMind::CMind()
+{
+
+}

+ 11 - 0
QFD/CCanvas/CMind.h

@@ -0,0 +1,11 @@
+#ifndef CMIND_H
+#define CMIND_H
+
+
+class CMind
+{
+public:
+    CMind();
+};
+
+#endif // CMIND_H

+ 5 - 0
QFD/CCanvas/CRectItem.cpp

@@ -0,0 +1,5 @@
+#include "CRectItem.h"
+
+CRectItem::CRectItem(QGraphicsItem *parent) : QGraphicsPathItem(parent) { }
+
+void CRectItem::mousePressEvent(QGraphicsSceneMouseEvent *event) { }

+ 14 - 0
QFD/CCanvas/CRectItem.h

@@ -0,0 +1,14 @@
+#ifndef CRECTITEM_H
+#define CRECTITEM_H
+
+#include <QGraphicsPathItem>
+
+class CRectItem : public QGraphicsPathItem
+{
+public:
+    explicit CRectItem(QGraphicsItem *parent = nullptr);
+
+    void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
+};
+
+#endif  // CRECTITEM_H