summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp49
1 files changed, 29 insertions, 20 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index ea27e1b..40ea501 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -508,11 +508,11 @@ void TextEdit::fileOpen()
QMap<QString, QStringList> map;
- map.insert(tr("All"), QStringList() );
- QStringList text;
- text << "text/*";
- map.insert(tr("Text"), text );
- text << "*";
- map.insert(tr("All"), text );
- QString str = OFileDialog::getOpenFileName( 2,"/", QString::null, map);
- if(!str.isEmpty() )
- openFile( str );
+ map.insert(tr("All"), QStringList() );
+ QStringList text;
+ text << "text/*";
+ map.insert(tr("Text"), text );
+ text << "*";
+ map.insert(tr("All"), text );
+ QString str = OFileDialog::getOpenFileName( 2,"/", QString::null, map);
+ if(!str.isEmpty() )
+ openFile( str );
@@ -794,13 +794,22 @@ bool TextEdit::saveAs()
-
-// QString str = OFileDialog::getSaveFileName( 2,"/");//,"", "*", this );
-// if(!str.isEmpty() ) {
-// openFile( str );
-
- fileSaveDlg=new fileSaver(this,tr("Save File As?"),TRUE, 0, currentFileName);
- qDebug("wanna save filename "+currentFileName);
- fileSaveDlg->exec();
- if( fileSaveDlg->result() == 1 ) {
+/*
+ QMap<QString, QStringList> map;
+ map.insert(tr("All"), QStringList() );
+ QStringList text;
+ text << "text/*";
+ map.insert(tr("Text"), text );
+ text << "*";
+ map.insert(tr("All"), text );
+ QString str = OFileDialog::getSaveFileName( 2,"/", QString::null, map);
+ if(!str.isEmpty() ) {
+ QString fileNm=str;
+*/
+
+ fileSaveDlg=new fileSaver(this,tr("Save File As?"),TRUE, 0, currentFileName);
+ qDebug("wanna save filename "+currentFileName);
+ fileSaveDlg->exec();
+ if( fileSaveDlg->result() == 1 ) {
QString fileNm=fileSaveDlg->selectedFileName;
-// QString fileNm=srt;
+
+
qDebug("saving filename "+fileNm);
@@ -839,3 +848,3 @@ bool TextEdit::saveAs()
if(caption().left(1)=="*")
- setCaption(caption().right(caption().length()-1));
+ setCaption(caption().right(caption().length()-1));