author | llornkcor <llornkcor> | 2002-02-24 17:05:29 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-24 17:05:29 (UTC) |
commit | f39b6cfe0cccca9dac39b4b15cfe076426d5a4c5 (patch) (side-by-side diff) | |
tree | e0cd32c7d9d5673ca0ef317a52f1ce9cae1957c4 | |
parent | 3008905fb88af28835417f722642d93bd1417f69 (diff) | |
download | opie-f39b6cfe0cccca9dac39b4b15cfe076426d5a4c5.zip opie-f39b6cfe0cccca9dac39b4b15cfe076426d5a4c5.tar.gz opie-f39b6cfe0cccca9dac39b4b15cfe076426d5a4c5.tar.bz2 |
changed how view as text was being executed
-rw-r--r-- | noncore/unsupported/filebrowser/filebrowser.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/unsupported/filebrowser/filebrowser.cpp b/noncore/unsupported/filebrowser/filebrowser.cpp index eaf5eeb..10dff07 100644 --- a/noncore/unsupported/filebrowser/filebrowser.cpp +++ b/noncore/unsupported/filebrowser/filebrowser.cpp @@ -18,24 +18,26 @@ ** **********************************************************************/ #include "inlineedit.h" #include "filebrowser.h" #include "filePermissions.h" #include <qpe/resource.h> #include <qpe/global.h> #include <qpe/mimetype.h> #include <qpe/applnk.h> #include <qcopchannel_qws.h> +#include <qcopenvelope_qws.h> + #include <qmessagebox.h> #include <qdir.h> #include <qregexp.h> #include <qheader.h> #include <qpe/qpetoolbar.h> #include <qpopupmenu.h> #include <qpe/qpemenubar.h> #include <qaction.h> #include <qstringlist.h> #include <qcursor.h> #include <qmultilineedit.h> #include <qfont.h> @@ -537,25 +539,27 @@ void FileView::newFolder() if( i->isDir() && ( i->getFilePath() == nd ) ){ setCurrentItem( i ); rename(); break; } i = (FileItem *) i->nextSibling(); } } void FileView::viewAsText() { FileItem * i = (FileItem *) currentItem(); - Global::execute( "textedit -f ", i->getFilePath() ); + QCopEnvelope e("QPE/Application/textedit","setDocument(QString)"); + e << i->getFilePath(); +// Global::execute( "textedit -f ", i->getFilePath() ); } void FileView::itemClicked( QListViewItem * i) { FileItem * t = (FileItem *) i; if( t == NULL ) return; if( t->isDir() ){ setDir( t->getFilePath() ); } } |