]> git.sesse.net Git - vlc/commitdiff
Qt: compile extensions on Qt4.4
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Jan 2010 00:08:34 +0000 (01:08 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Jan 2010 00:15:27 +0000 (01:15 +0100)
modules/gui/qt4/dialogs/extensions.cpp
modules/gui/qt4/qt4.hpp

index 5969e05c5c6e5b54231f92b811d4a80d50aac760..9f63846ccbf196719663bf2fa53e171016bec1de 100644 (file)
@@ -175,8 +175,13 @@ ExtensionDialog::ExtensionDialog( intf_thread_t *_p_intf,
     assert( p_dialog );
 
     msg_Dbg( p_intf, "Creating a new dialog: '%s'", p_dialog->psz_title );
+#if HAS_QT45
     this->setWindowFlags( Qt::WindowMinMaxButtonsHint
                         | Qt::WindowCloseButtonHint );
+#else
+    this->setWindowFlags( Qt::WindowMinMaxButtonsHint
+#endif
+
     this->setWindowTitle( qfu( p_dialog->psz_title ) );
 
     layout = new QGridLayout( this );
index 1dc7316f3ac92e09af82aeb765e9058a3f53f160..15f8a3a909fda81d693d53509a1fcfc3e15737d5 100644 (file)
@@ -42,6 +42,8 @@
 # error Please update Qt version to 4.5.1. 4.5.0 is too buggy
 #endif
 
+#define HAS_QT45 ( QT_VERSION >= 0x040500 )
+
 enum {
     QT_NORMAL_MODE = 0,
     QT_ALWAYS_VIDEO_MODE,