xuqiang 5 月之前
父节点
当前提交
dc7e336e11
共有 2 个文件被更改,包括 12 次插入2 次删除
  1. 6 1
      include/canvas.h
  2. 6 1
      include/mainwindow.h

+ 6 - 1
include/canvas.h

@@ -1,3 +1,6 @@
+#ifndef __CANVAS_H__
+#define __CANVAS_H__
+
 #include <QWidget>
 
 class Canvas : public QWidget
@@ -17,4 +20,6 @@ protected:
 private:
     QColor m_backgroundColor;
 
-};
+};
+
+#endif // CANVAS_H

+ 6 - 1
include/mainwindow.h

@@ -1,3 +1,6 @@
+#ifndef __MAINWINDOW_H__
+#define __MAINWINDOW_H__
+
 #include <QMainWindow>
 #include <QStackedWidget>
 
@@ -17,4 +20,6 @@ protected:
 private:
     QStackedWidget *m_pStackedWidget;
     
-};
+};
+
+#endif // MAINWINDOW_H