]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/qt4.hpp
Qt4 - Fix the "sound slider moves at first time, even If I didn't click it" bug.
[vlc] / modules / gui / qt4 / qt4.hpp
index 18a5452f453325e998a2dbb3c26e34405608d03a..d0c4283f552f4d2abb0ca980c454d1b567189ce1 100644 (file)
 #ifndef _QVLC_H_
 #define _QVLC_H_
 
+#ifdef HAVE_CONFIG_H 
+# include "config.h" 
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc_interface.h>
 #include <vlc_playlist.h>
 #define VLC_META_ENGINE_DURATION   0x00000002
 #define VLC_META_DURATION          N_( "Duration" )
 
+#define QT_NORMAL_MODE 0
+#define QT_ALWAYS_VIDEO_MODE 1
+#define QT_MINIMAL_MODE 2
+
 class QApplication;
 class QMenu;
 class MainInterface;
@@ -51,8 +59,8 @@ struct intf_sys_t
     msg_subscription_t *p_sub; ///< Subscription to the message bank
 
     VideoWidget *p_video;
-    int i_saved_height, i_saved_width;
 
+    const char *psz_filepath;
     QMenu * p_popup_menu;
 };
 
@@ -92,8 +100,6 @@ struct intf_sys_t
 
 #define TOGGLEV( x ) { if( x->isVisible() ) x->hide();          \
             else  x->show(); }
-            
-#define MAX(A,B) ( (A) > (B) ? (A):(B))
 
 static int DialogEvent_Type = QEvent::User + 1;
 //static int PLUndockEvent_Type = QEvent::User + 2;