Commit 72163265 authored by damienf's avatar damienf
Browse files

- qt4: retrict FileDialog changes to win32

parent 60b2d721
......@@ -100,13 +100,17 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
/* Change the text that was uncool in the usual box */
listLabel[5]->setText( qtr( "Filter:" ) );
#if WIN32
/* QFileDialog is quite buggy make it brerable on win32 by tweaking
the followin */
QListView *fileListView = findChildren<QListView*>().first();
fileListView->setLayoutMode(QListView::Batched);
fileListView->setViewMode(QListView::ListMode);
fileListView->setResizeMode(QListView::Adjust);
fileListView->setWrapping(true);
fileListView->setFlow(QListView::TopToBottom);
fileListView->setUniformItemSizes(false);
fileListView->setLayoutMode(QListView::Batched);
fileListView->setFlow(QListView::TopToBottom);
fileListView->setWrapping(true);
#endif
// Hide the subtitles control by default.
ui.subFrame->hide();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment