Diffstat (limited to 'core/apps/textedit/fileSaver.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/fileSaver.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/apps/textedit/fileSaver.cpp b/core/apps/textedit/fileSaver.cpp index af51fc3..b813ed3 100644 --- a/core/apps/textedit/fileSaver.cpp +++ b/core/apps/textedit/fileSaver.cpp | |||
@@ -40,12 +40,14 @@ fileSaver::fileSaver( QWidget* parent, const char* name, bool modal, WFlags fl | |||
40 | ListView = new QListView( this, "ListView" ); | 40 | ListView = new QListView( this, "ListView" ); |
41 | ListView->addColumn( tr( "Name" ) ); | 41 | ListView->addColumn( tr( "Name" ) ); |
42 | ListView->setColumnWidth(0,140); | 42 | ListView->setColumnWidth(0,140); |
43 | ListView->setSorting( 2, FALSE); | 43 | ListView->setSorting( 2, FALSE); |
44 | ListView->addColumn( tr( "Size" ) ); | 44 | ListView->addColumn( tr( "Size" ) ); |
45 | ListView->setColumnWidth(1,59); | 45 | ListView->setColumnWidth(1,59); |
46 | ListView->setColumnWidthMode(0,QListView::Manual); | ||
47 | ListView->setColumnAlignment(1,QListView::AlignRight); | ||
46 | // ListView->setMultiSelection(true); | 48 | // ListView->setMultiSelection(true); |
47 | // ListView->setSelectionMode(QListView::Extended); | 49 | // ListView->setSelectionMode(QListView::Extended); |
48 | 50 | ||
49 | ListView->setAllColumnsShowFocus( TRUE ); | 51 | ListView->setAllColumnsShowFocus( TRUE ); |
50 | ListView->setGeometry( QRect( 10, 35, 220, 160 ) ); | 52 | ListView->setGeometry( QRect( 10, 35, 220, 160 ) ); |
51 | 53 | ||
@@ -54,13 +56,13 @@ fileSaver::fileSaver( QWidget* parent, const char* name, bool modal, WFlags fl | |||
54 | 56 | ||
55 | fileEdit->setText( tmpFileName); | 57 | fileEdit->setText( tmpFileName); |
56 | 58 | ||
57 | // signals and slots connections | 59 | // signals and slots connections |
58 | connect( ListView, SIGNAL(doubleClicked( QListViewItem*)), SLOT(listDoubleClicked(QListViewItem *)) ); | 60 | connect( ListView, SIGNAL(doubleClicked( QListViewItem*)), SLOT(listDoubleClicked(QListViewItem *)) ); |
59 | connect( ListView, SIGNAL(pressed( QListViewItem*)), SLOT(listClicked(QListViewItem *)) ); | 61 | connect( ListView, SIGNAL(pressed( QListViewItem*)), SLOT(listClicked(QListViewItem *)) ); |
60 | 62 | ||
61 | // tmpFileName=fi.FilePath(); | 63 | // tmpFileName=fi.FilePath(); |
62 | // qDebug( tmpFileName); | 64 | // qDebug( tmpFileName); |
63 | currentDir.setPath( QDir::currentDirPath() ); | 65 | currentDir.setPath( QDir::currentDirPath() ); |
64 | populateList(); | 66 | populateList(); |
65 | } | 67 | } |
66 | 68 | ||
@@ -159,13 +161,13 @@ void fileSaver::listClicked(QListViewItem *selectedItem) | |||
159 | } | 161 | } |
160 | 162 | ||
161 | 163 | ||
162 | void fileSaver::closeEvent( QCloseEvent *e ) | 164 | void fileSaver::closeEvent( QCloseEvent *e ) |
163 | { | 165 | { |
164 | if(e->isAccepted()) { | 166 | if(e->isAccepted()) { |
165 | e->accept(); | 167 | e->accept(); |
166 | } else { | 168 | } else { |
167 | qDebug("not accepted"); | 169 | qDebug("not accepted"); |
168 | done(-1); | 170 | done(-1); |
169 | } | 171 | } |
170 | } | 172 | } |
171 | 173 | ||