]> git.sesse.net Git - vlc/commitdiff
[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 57de94e7e068686bd6577cbb3b1c41b93fe26262..79b682117134a69706462ad4c6ad108c3d4dcd54 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 a5f77e92c21856d709d26fb9d529f1f0efc1ee79..3738c1199f66cdfb010b4987cd3b49ad75bb5556 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 )