+ /* Use a QFileDialog and customize it because we don't want to
+ rewrite it all. Be careful to your eyes cause there are a few hacks.
+ Be very careful and test correctly when you modify this. */
+
+ // Make this QFileDialog a child of tempWidget from the ui.
+ dialogBox = new QFileDialog( ui.tempWidget );
+ dialogBox->setFileMode( QFileDialog::ExistingFiles );
+ dialogBox->setDirectory( qfu( p_intf->p_libvlc->psz_homedir ) );
+ /* We don't want to see a grip in the middle of the window, do we? */
+ dialogBox->setSizeGripEnabled( false );
+
+ // Add it to the layout
+ ui.gridLayout->addWidget( dialogBox, 0, 0, 1, 3 );
+
+ // But hide the two OK/Cancel buttons. Enable them for debug.
+ findChild<QDialogButtonBox*>()->hide();
+
+ /* Ugly hacks to get the good Widget */
+ //This lineEdit is the normal line in the fileDialog.
+ lineFileEdit = findChildren<QLineEdit*>()[3];
+ lineFileEdit->hide();
+
+ /* Make a list of QLabel inside the QFileDialog to access the good ones */
+ QList<QLabel *> listLabel = findChildren<QLabel*>();
+
+ /* Hide the FileNames one. Enable it for debug */
+ listLabel[4]->hide();
+ /* Change the text that was uncool in the usual box */
+ listLabel[5]->setText( qtr( "Filter:" ) );