[vlmc-devel] RenderWidget: Compile .mm file only on Mac OS

Rohit Yadav git at videolan.org
Fri Mar 25 10:27:52 CET 2011


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Fri Mar 25 15:13:26 2011 +0530| [af9027e895c1772e551128e51909503dc6c925bc] | committer: Rohit Yadav

RenderWidget: Compile .mm file only on Mac OS

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=af9027e895c1772e551128e51909503dc6c925bc
---

 src/CMakeLists.txt             |    2 +-
 src/Gui/preview/RenderWidget.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index de9bcee..2e6f634 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -181,7 +181,6 @@ ELSE(NOT WITH_GUI)
         Gui/preview/LCDTimecode.cpp
         Gui/preview/PreviewRuler.cpp
         Gui/preview/PreviewWidget.cpp
-        Gui/preview/RenderWidget.mm
         Gui/project/GuiProjectManager.cpp
         Gui/settings/BoolWidget.cpp
         Gui/settings/ColorWidget.cpp
@@ -358,6 +357,7 @@ ELSE(NOT WITH_GUI)
         SET_SOURCE_FILES_PROPERTIES(../share/VLMC.icns PROPERTIES
             MACOSX_PACKAGE_LOCATION Resources)
         SET(MACOSX_BUNDLE_ICON_FILE VLMC.icns)
+        LIST( APPEND VLMC_SRCS Gui/preview/RenderWidget.mm )
     ENDIF( APPLE )
 
     ADD_EXECUTABLE( vlmc ${GUI_TYPE} ${VLMC_SRCS} ${VLMC_MOC_SRCS} ${VLMC_UIS_H} ${VLMC_RCC_SRCS} )
diff --git a/src/Gui/preview/RenderWidget.h b/src/Gui/preview/RenderWidget.h
index c14d55b..bf53604 100644
--- a/src/Gui/preview/RenderWidget.h
+++ b/src/Gui/preview/RenderWidget.h
@@ -56,7 +56,7 @@ private:
 #else
     RenderWidget( QWidget* parent = NULL )
         : QWidget (parent) {};
-    WId id() const { return winId; };
+    WId id() const { return winId(); };
 #endif
 };
 



More information about the Vlmc-devel mailing list