[vlc-devel] commit: check qt4 version at runtime ( Rafaël Carré )

git version control git at videolan.org
Sat Mar 8 14:08:03 CET 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Mar  8 14:08:05 2008 +0100| [a701afad6a042d49ec73891570929249b5555a45]

check qt4 version at runtime

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

 modules/gui/qt4/qt4.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index fa2b279..40fce2f 100644
--- a/modules/gui/qt4/qt4.cpp
+++ b/modules/gui/qt4/qt4.cpp
@@ -294,7 +294,8 @@ static void Init( intf_thread_t *p_intf )
      * see commits 21610 21622 21654 for reference */
 
     /* If you don't have a gconftool-2 binary, you should comment this line */
-    QApplication::setDesktopSettingsAware( false );
+    if( strcmp( qVersion(), "4.4.0" ) < 0 ) /* fixed in Qt 4.4.0 */
+        QApplication::setDesktopSettingsAware( false );
 #endif
 
     /* Start the QApplication here */




More information about the vlc-devel mailing list