Diffstat (limited to 'noncore/apps/opie-reader/fileBrowser.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/fileBrowser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/fileBrowser.cpp b/noncore/apps/opie-reader/fileBrowser.cpp index b21d59d..21c970b 100644 --- a/noncore/apps/opie-reader/fileBrowser.cpp +++ b/noncore/apps/opie-reader/fileBrowser.cpp | |||
@@ -36,20 +36,23 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags | |||
36 | buttonShowHidden->setText( tr( "Hidden" ) ); | 36 | buttonShowHidden->setText( tr( "Hidden" ) ); |
37 | buttonShowHidden->setAutoDefault( false ); | 37 | buttonShowHidden->setAutoDefault( false ); |
38 | buttonShowHidden->setToggleButton( true ); | 38 | buttonShowHidden->setToggleButton( true ); |
39 | buttonShowHidden->setOn( false ); | 39 | buttonShowHidden->setOn( false ); |
40 | 40 | ||
41 | dirLabel = new QLabel(this, "DirLabel"); | 41 | dirLabel = new QLabel(this, "DirLabel"); |
42 | dirLabel->setAlignment(AlignLeft | AlignVCenter | ExpandTabs | WordBreak); | ||
42 | dirLabel->setText(currentDir.canonicalPath()); | 43 | dirLabel->setText(currentDir.canonicalPath()); |
43 | 44 | ||
44 | ListView = new QtrListView( this, "ListView" ); | 45 | ListView = new QtrListView( this, "ListView" ); |
45 | ListView->addColumn( tr( "Name" ) ); | 46 | ListView->addColumn( tr( "Name" ) ); |
46 | ListView->setSorting( 2, FALSE); | 47 | ListView->setSorting( 2, FALSE); |
47 | ListView->addColumn( tr( "Size" ) ); | 48 | ListView->addColumn( tr( "Size" ) ); |
48 | ListView->setSelectionMode(QListView::Single); | 49 | ListView->setSelectionMode(QListView::Single); |
49 | ListView->setAllColumnsShowFocus( TRUE ); | 50 | ListView->setAllColumnsShowFocus( TRUE ); |
51 | ListView->setColumnWidthMode(0, QListView::Manual); | ||
52 | ListView->setColumnWidthMode(1, QListView::Manual); | ||
50 | 53 | ||
51 | // signals and slots connections | 54 | // signals and slots connections |
52 | connect( buttonShowHidden, SIGNAL( toggled(bool) ), this, SLOT( setHidden(bool) ) ); | 55 | connect( buttonShowHidden, SIGNAL( toggled(bool) ), this, SLOT( setHidden(bool) ) ); |
53 | connect( buttonOk, SIGNAL( clicked() ), this, SLOT( OnRoot() ) ); | 56 | connect( buttonOk, SIGNAL( clicked() ), this, SLOT( OnRoot() ) ); |
54 | connect( ListView, SIGNAL(doubleClicked( QListViewItem*)), SLOT(listDoubleClicked(QListViewItem *)) ); | 57 | connect( ListView, SIGNAL(doubleClicked( QListViewItem*)), SLOT(listDoubleClicked(QListViewItem *)) ); |
55 | connect( ListView, SIGNAL(clicked( QListViewItem*)), SLOT(listClicked(QListViewItem *)) ); | 58 | connect( ListView, SIGNAL(clicked( QListViewItem*)), SLOT(listClicked(QListViewItem *)) ); |