preheader.h 627 B

123456789101112131415161718192021222324252627282930
  1. #ifndef PREHEADER_H
  2. #define PREHEADER_H
  3. #include <QtCore>
  4. #include <QtWidgets>
  5. #include <QSqlDatabase>
  6. #include <QSqlError>
  7. #include <QSqlQuery>
  8. #include <QDialog>
  9. #include <QEvent>
  10. enum DrawBaseShape
  11. {
  12. selection ,
  13. rotation ,
  14. line ,
  15. rectangle , //矩形
  16. roundrect ,
  17. ellipse ,
  18. poly,
  19. arrowLine, //箭头线段
  20. text, //文字
  21. penPath, //铅笔
  22. image, //图片
  23. triangle, //三角形
  24. None
  25. };
  26. #define SafeDelete(p) if (nullptr != p) { delete p; p = nullptr; }
  27. #define USERCATALOGDIR QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation)
  28. #endif // PREHEADER_H