Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. class Page : QWebPage {
  2. public:
  3. string test1;
  4. }
  5.  
  6. class EnginePage : QWebEnginePage {
  7. public:
  8. string test1;
  9. string test2;
  10. }
  11.  
  12. Source +=
  13. one.h
  14. two.h
  15. three.h
  16. four.h
  17.  
  18. #if (one_defined)
  19. Source += Page.h
  20. #else
  21. Source += EnginePage.h
  22. #end
  23.  
  24. #if (one_defined)
  25. class Page : QWebPage
  26. #else
  27. class EnginePage : QWebEnginePage {
  28. #endif
  29.  
  30. public:
  31. string test1;
  32.  
  33. #if (one_defined)
  34. string test2;
  35. #endif
  36. }
  37.  
  38. #cmakedefine QWebPage_Defined
  39.  
  40. configure_file("configure.h.in", "${CMAKE_BINARY_DIR}/configure.h")
  41.  
  42. #include "configure.h" // Include the file
  43.  
  44. #ifdef QWebPage_Defined // Warning : use #ifdef and not #if
  45. class Page : QWebPage
  46. #else
  47. class EnginePage : QWebEnginePage {
  48. #endif
  49.  
  50. public:
  51. string test1;
  52.  
  53. #ifdef QWebPage_Defined // Warning : use #ifdef and not #if
  54. string test2;
  55. #endif
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement