author | llornkcor <llornkcor> | 2002-02-19 03:19:17 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-19 03:19:17 (UTC) |
commit | 789c9e0069f71afececf81204879462f3117e583 (patch) (unidiff) | |
tree | 696073b7c8689379f914a81099163507546349a1 /core/apps/textedit/fileBrowser.cpp | |
parent | 994691c1659fdac4980b0319aa8fab1c98ef3c73 (diff) | |
download | opie-789c9e0069f71afececf81204879462f3117e583.zip opie-789c9e0069f71afececf81204879462f3117e583.tar.gz opie-789c9e0069f71afececf81204879462f3117e583.tar.bz2 |
set listviewcolum stuff on dialogs
Diffstat (limited to 'core/apps/textedit/fileBrowser.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/fileBrowser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/apps/textedit/fileBrowser.cpp b/core/apps/textedit/fileBrowser.cpp index bb420e6..2275388 100644 --- a/core/apps/textedit/fileBrowser.cpp +++ b/core/apps/textedit/fileBrowser.cpp | |||
@@ -29,25 +29,26 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags | |||
29 | setCaption(tr( "Browse for file" ) ); | 29 | setCaption(tr( "Browse for file" ) ); |
30 | filterStr=filter; | 30 | filterStr=filter; |
31 | dirLabel = new QLabel(this, "DirLabel"); | 31 | dirLabel = new QLabel(this, "DirLabel"); |
32 | dirLabel->setText(currentDir.canonicalPath()); | 32 | dirLabel->setText(currentDir.canonicalPath()); |
33 | dirLabel->setGeometry(10,4,230,30); | 33 | dirLabel->setGeometry(10,4,230,30); |
34 | ListView = new QListView( this, "ListView" ); | 34 | ListView = new QListView( this, "ListView" ); |
35 | ListView->addColumn( tr( "Name" ) ); | 35 | ListView->addColumn( tr( "Name" ) ); |
36 | ListView->setColumnWidth(0,140); | 36 | ListView->setColumnWidth(0,140); |
37 | ListView->setSorting( 2, FALSE); | 37 | ListView->setSorting( 2, FALSE); |
38 | ListView->addColumn( tr( "Size" ) ); | 38 | ListView->addColumn( tr( "Size" ) ); |
39 | ListView->setColumnWidth(1,59); | 39 | ListView->setColumnWidth(1,59); |
40 | // ListView->addColumn( tr( "" ) ); | 40 | // ListView->addColumn( tr( "" ) ); |
41 | // ListView->setColumnWidth(1,59); | 41 | ListView->setColumnWidthMode(0,QListView::Manual); |
42 | ListView->setColumnAlignment(1,QListView::AlignRight); | ||
42 | // ListView->setMultiSelection(true); | 43 | // ListView->setMultiSelection(true); |
43 | // ListView->setSelectionMode(QListView::Extended); | 44 | // ListView->setSelectionMode(QListView::Extended); |
44 | 45 | ||
45 | ListView->setAllColumnsShowFocus( TRUE ); | 46 | ListView->setAllColumnsShowFocus( TRUE ); |
46 | ListView->setGeometry( QRect( 10, 35, 220, 240 ) ); | 47 | ListView->setGeometry( QRect( 10, 35, 220, 240 ) ); |
47 | 48 | ||
48 | // signals and slots connections | 49 | // signals and slots connections |
49 | connect( ListView, SIGNAL(doubleClicked( QListViewItem*)), SLOT(listDoubleClicked(QListViewItem *)) ); | 50 | connect( ListView, SIGNAL(doubleClicked( QListViewItem*)), SLOT(listDoubleClicked(QListViewItem *)) ); |
50 | connect( ListView, SIGNAL(pressed( QListViewItem*)), SLOT(listClicked(QListViewItem *)) ); | 51 | connect( ListView, SIGNAL(pressed( QListViewItem*)), SLOT(listClicked(QListViewItem *)) ); |
51 | currentDir.setPath(QDir::currentDirPath()); | 52 | currentDir.setPath(QDir::currentDirPath()); |
52 | populateList(); | 53 | populateList(); |
53 | } | 54 | } |