]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/qt4.hpp
Introduce setLayoutMargins for layout margins difference between Qt4.2 and Qt4.3
[vlc] / modules / gui / qt4 / qt4.hpp
index 181d28590da4d78731ab425ce25790bbff67591c..47e69fbaa7063c9e5d271c4aebfe89f61de3e344 100644 (file)
@@ -100,10 +100,16 @@ struct intf_sys_t
 #define TOGGLEV( x ) { if( x->isVisible() ) x->hide();          \
             else  x->show(); }
 
+#if QT43
+    #define setLayoutMargins( a, b, c, d, e) setContentsMargins( a, b, c, d )
+#else
+    #define setLayoutMargins( a, b, c, d, e) setMargin( e )
+#endif
+
 enum {
-DialogEventType = 0,
-IMEventType     = 100,
-PLEventType     = 200
+    DialogEventType = 0,
+    IMEventType     = 100,
+    PLEventType     = 200
 };
 
 static int DialogEvent_Type = QEvent::User + DialogEventType + 1;