Diffstat (limited to 'core/apps/textedit/textedit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/textedit.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index a66b967..cc3ccbc 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -39,3 +39,5 @@ | |||
39 | //#include <qpe/finddialog.h> | 39 | //#include <qpe/finddialog.h> |
40 | |||
40 | #include <opie/ofileselector.h> | 41 | #include <opie/ofileselector.h> |
42 | #include <opie/ofiledialog.h> | ||
41 | 43 | ||
@@ -501,6 +503,8 @@ void TextEdit::fileOpen() | |||
501 | { | 503 | { |
502 | OFileSelector *fileSelector; | 504 | // OFileSelector *fileSelector; |
503 | fileSelector = new OFileSelector( this, 1,1,"/","", "text/*"); | 505 | // fileSelector = new OFileSelector( this, 1,1,"/","", "text/*"); |
504 | fileSelector->showMaximized(); | 506 | //fileSelector->showMaximized(); |
505 | 507 | QString str = OFileDialog::getOpenFileName(1,"/","", QStringList() , this ); | |
508 | if(!str.isEmpty() ) | ||
509 | openFile( str ); | ||
506 | // browseForFiles = new fileBrowser(this,tr("Open File"),TRUE,0, "text/*"); // | 510 | // browseForFiles = new fileBrowser(this,tr("Open File"),TRUE,0, "text/*"); // |
@@ -523,3 +527,3 @@ void TextEdit::fileOpen() | |||
523 | // qDebug("please open "+currentFileName); | 527 | // qDebug("please open "+currentFileName); |
524 | // openFile(fileName ); | 528 | // openFile(str ); |
525 | // } | 529 | // } |