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 @@ -38,5 +38,7 @@ #include <qpe/qcopenvelope_qws.h> //#include <qpe/finddialog.h> + #include <opie/ofileselector.h> +#include <opie/ofiledialog.h> #include <qstringlist.h> @@ -500,8 +502,10 @@ void TextEdit::fileNew() void TextEdit::fileOpen() { - OFileSelector *fileSelector; - fileSelector = new OFileSelector( this, 1,1,"/","", "text/*"); - fileSelector->showMaximized(); - + // OFileSelector *fileSelector; + // fileSelector = new OFileSelector( this, 1,1,"/","", "text/*"); + //fileSelector->showMaximized(); + QString str = OFileDialog::getOpenFileName(1,"/","", QStringList() , this ); + if(!str.isEmpty() ) + openFile( str ); // browseForFiles = new fileBrowser(this,tr("Open File"),TRUE,0, "text/*"); // // browseForFiles->setFileView( viewSelection ); @@ -522,5 +526,5 @@ void TextEdit::fileOpen() // currentFileName = fileName; // qDebug("please open "+currentFileName); -// openFile(fileName ); +// openFile(str ); // } // } |