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>
 #include <QWidget>
 
 
 class Canvas : public QWidget
 class Canvas : public QWidget
@@ -17,4 +20,6 @@ protected:
 private:
 private:
     QColor m_backgroundColor;
     QColor m_backgroundColor;
 
 
-};
+};
+
+#endif // CANVAS_H

+ 6 - 1
include/mainwindow.h

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