Diffstat (limited to 'core/apps/textedit/fileSaver.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/fileSaver.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/core/apps/textedit/fileSaver.cpp b/core/apps/textedit/fileSaver.cpp index d01daee..88608cc 100644 --- a/core/apps/textedit/fileSaver.cpp +++ b/core/apps/textedit/fileSaver.cpp | |||
@@ -30,5 +30,7 @@ fileSaver::fileSaver( QWidget* parent, const char* name, bool modal, WFlags fl | |||
30 | resize( 236, 280 ); | 30 | resize( 236, 280 ); |
31 | setCaption(tr( "Save file" ) ); | 31 | setCaption(tr( "Save file" ) ); |
32 | // filterStr=currentFileName; | 32 | QFileInfo fi(currentFileName); |
33 | QString tmpFileName=fi.fileName(); | ||
34 | // qDebug( tmpFileName); | ||
33 | 35 | ||
34 | dirLabel = new QLabel(this, "DirLabel"); | 36 | dirLabel = new QLabel(this, "DirLabel"); |
@@ -50,9 +52,14 @@ fileSaver::fileSaver( QWidget* parent, const char* name, bool modal, WFlags fl | |||
50 | fileEdit= new QLineEdit(this); | 52 | fileEdit= new QLineEdit(this); |
51 | fileEdit->setGeometry( QRect( 10, 230, 200, 25)); | 53 | fileEdit->setGeometry( QRect( 10, 230, 200, 25)); |
52 | fileEdit->setText(currentFileName); | 54 | |
53 | // signals and slots connections | 55 | fileEdit->setText( tmpFileName); |
56 | |||
57 | // signals and slots connections | ||
54 | connect( ListView, SIGNAL(doubleClicked( QListViewItem*)), SLOT(listDoubleClicked(QListViewItem *)) ); | 58 | connect( ListView, SIGNAL(doubleClicked( QListViewItem*)), SLOT(listDoubleClicked(QListViewItem *)) ); |
55 | connect( ListView, SIGNAL(pressed( QListViewItem*)), SLOT(listClicked(QListViewItem *)) ); | 59 | connect( ListView, SIGNAL(pressed( QListViewItem*)), SLOT(listClicked(QListViewItem *)) ); |
56 | currentDir.setPath(QDir::currentDirPath() ); | 60 | |
61 | // tmpFileName=fi.FilePath(); | ||
62 | // qDebug( tmpFileName); | ||
63 | currentDir.setPath( QDir::currentDirPath() ); | ||
57 | populateList(); | 64 | populateList(); |
58 | } | 65 | } |
@@ -161,4 +168,5 @@ void fileSaver::accept() { | |||
161 | selectedFileName = fileEdit->text(); | 168 | selectedFileName = fileEdit->text(); |
162 | selectedFileName = currentDir.canonicalPath()+ selectedFileName; | 169 | selectedFileName = currentDir.canonicalPath()+ selectedFileName; |
170 | qDebug("goint to save "+selectedFileName); | ||
163 | reject(); | 171 | reject(); |
164 | } | 172 | } |