]> git.sesse.net Git - vlc/commitdiff
Qt4.3 compatibility.
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 28 Jun 2007 16:51:33 +0000 (16:51 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 28 Jun 2007 16:51:33 +0000 (16:51 +0000)
modules/gui/qt4/components/open.cpp

index e804166f3b67f8315a59f339b1625cf0701f221b..f5db04e704e97ca2eb2ae723faea49f3b62da172 100644 (file)
@@ -87,7 +87,11 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
 
     /* Ugly hacks to get the good Widget */
     //This lineEdit is the normal line in the fileDialog.
+#if QT_VERSION >= 0x040300
+    lineFileEdit = findChildren<QLineEdit*>()[2];
+#else
     lineFileEdit = findChildren<QLineEdit*>()[3];
+#endif
     lineFileEdit->hide();
 
     /* Make a list of QLabel inside the QFileDialog to access the good ones */