Changeset 60b2d721787e7401a971adea3f331d8e1dbeaa40

Show
Ignore:
Timestamp:
25/05/07 16:49:17 (1 year ago)
Author:
Damien Fouilleul <damienf@videolan.org>
git-committer:
Damien Fouilleul <damienf@videolan.org> 1180104557 +0000
git-parent:

[3ea8e8f6125100ed1a51bcc79a86f026bcd380ed]

git-author:
Damien Fouilleul <damienf@videolan.org> 1180104557 +0000
Message:

qt4: improve the layout of files in file open dialog

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/qt4/components/open.cpp

    rc186bdb r60b2d72  
    3434#include <QLineEdit> 
    3535#include <QStackedLayout> 
     36#include <QListView> 
    3637 
    3738#ifdef HAVE_LIMITS_H 
     
    99100    /* Change the text that was uncool in the usual box */ 
    100101    listLabel[5]->setText( qtr( "Filter:" ) ); 
     102 
     103    QListView *fileListView = findChildren<QListView*>().first(); 
     104    fileListView->setViewMode(QListView::ListMode); 
     105    fileListView->setResizeMode(QListView::Adjust); 
     106    fileListView->setWrapping(true); 
     107    fileListView->setFlow(QListView::TopToBottom); 
     108    fileListView->setUniformItemSizes(false); 
     109    fileListView->setLayoutMode(QListView::Batched); 
    101110 
    102111    // Hide the subtitles control by default.