Commit 60b2d721 authored by Damien Fouilleul's avatar Damien Fouilleul

qt4: improve the layout of files in file open dialog

parent 3ea8e8f6
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QLineEdit> #include <QLineEdit>
#include <QStackedLayout> #include <QStackedLayout>
#include <QListView>
#ifdef HAVE_LIMITS_H #ifdef HAVE_LIMITS_H
# include <limits.h> # include <limits.h>
...@@ -99,6 +100,14 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -99,6 +100,14 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
/* Change the text that was uncool in the usual box */ /* Change the text that was uncool in the usual box */
listLabel[5]->setText( qtr( "Filter:" ) ); listLabel[5]->setText( qtr( "Filter:" ) );
QListView *fileListView = findChildren<QListView*>().first();
fileListView->setViewMode(QListView::ListMode);
fileListView->setResizeMode(QListView::Adjust);
fileListView->setWrapping(true);
fileListView->setFlow(QListView::TopToBottom);
fileListView->setUniformItemSizes(false);
fileListView->setLayoutMode(QListView::Batched);
// Hide the subtitles control by default. // Hide the subtitles control by default.
ui.subFrame->hide(); 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