[Qt] Win Compilation fix.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 20 Oct 2008 15:03:57 +0000 (17:03 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 20 Oct 2008 15:03:57 +0000 (17:03 +0200)
modules/gui/qt4/qt4.cpp
modules/gui/qt4/util/qvlcapp.hpp

index 57de94e..79b6821 100755 (executable)
@@ -352,11 +352,7 @@ static void *Init( vlc_object_t *obj )
 #endif
 
     /* Start the QApplication here */
-#ifdef WIN32
-    WinQtApp *app = new WinQtApp( argc, argv , true );
-#else
-    QApplication *app = new QApplication( argc, argv , true );
-#endif
+    QVLCApp *app = new QVLCApp( argc, argv , true );
     p_intf->p_sys->p_app = app;
 
     p_intf->p_sys->mainSettings = new QSettings(
index a5f77e9..3738c11 100644 (file)
 
 class QVLCApp : public QApplication
 {
+public:
+    QVLCApp( int & argc, char ** argv, bool GUIenabled ) : QApplication( argc,
+            argv, GUIenabled ) {}
+
 #if defined(Q_WS_WIN)
 protected:
     virtual bool winEventFilter( MSG *msg, long *result )