Diffstat (limited to 'noncore/apps/opie-reader/fileBrowser.cpp') (more/less context) (ignore 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 | |||
@@ -30,32 +30,35 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags | |||
30 | buttonOk->setFixedSize( 25, 25 ); | 30 | buttonOk->setFixedSize( 25, 25 ); |
31 | buttonOk->setAutoDefault( false ); | 31 | buttonOk->setAutoDefault( false ); |
32 | buttonOk->setText( tr( "/" ) ); | 32 | buttonOk->setText( tr( "/" ) ); |
33 | 33 | ||
34 | buttonShowHidden = new QPushButton( this, "buttonShowHidden" ); | 34 | buttonShowHidden = new QPushButton( this, "buttonShowHidden" ); |
35 | // buttonShowHidden->setFixedSize( 50, 25 ); | 35 | // buttonShowHidden->setFixedSize( 50, 25 ); |
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 *)) ); |
56 | connect( ListView, SIGNAL(OnOKButton( QListViewItem*)), SLOT(listClicked(QListViewItem *)) ); | 59 | connect( ListView, SIGNAL(OnOKButton( QListViewItem*)), SLOT(listClicked(QListViewItem *)) ); |
57 | connect( ListView, SIGNAL(OnCentreButton( QListViewItem*)), SLOT(listClicked(QListViewItem *)) ); | 60 | connect( ListView, SIGNAL(OnCentreButton( QListViewItem*)), SLOT(listClicked(QListViewItem *)) ); |
58 | connect( ListView, SIGNAL(OnCancelButton()), SLOT(OnCancel()) ); | 61 | connect( ListView, SIGNAL(OnCancelButton()), SLOT(OnCancel()) ); |
59 | 62 | ||
60 | QVBoxLayout* grid = new QVBoxLayout(this); | 63 | QVBoxLayout* grid = new QVBoxLayout(this); |
61 | QHBoxLayout* hgrid = new QHBoxLayout(grid); | 64 | QHBoxLayout* hgrid = new QHBoxLayout(grid); |