summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/fileBrowser.cpp24
-rw-r--r--core/apps/textedit/textedit.cpp4
2 files changed, 14 insertions, 14 deletions
diff --git a/core/apps/textedit/fileBrowser.cpp b/core/apps/textedit/fileBrowser.cpp
index fced326..9ad0d69 100644
--- a/core/apps/textedit/fileBrowser.cpp
+++ b/core/apps/textedit/fileBrowser.cpp
@@ -55,18 +55,18 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags
- mimeType = mimeFilter;
- MimeType mt( mimeType);
+// mimeType = mimeFilter;
+// MimeType mt( mimeType);
- if( mt.extension().isEmpty()) {
+// if( mt.extension().isEmpty()) {
- QStringList filterList;
- filterList=QStringList::split(";",mimeFilter,FALSE);
+// QStringList filterList;
+// filterList=QStringList::split(";",mimeFilter,FALSE);
- for ( QStringList::Iterator it = filterList.begin(); it != filterList.end(); ++it ) {
- printf( "%s \n", (*it).latin1() );
- }
+// for ( QStringList::Iterator it = filterList.begin(); it != filterList.end(); ++it ) {
+// printf( "%s \n", (*it).latin1() );
+// }
- filterStr = mimeFilter.right(mimeFilter.length() - mimeFilter.find("/",0,TRUE) - 1);// "*";
+// filterStr = mimeFilter.right(mimeFilter.length() - mimeFilter.find("/",0,TRUE) - 1);// "*";
- qDebug(filterStr);
- } else {
+// qDebug(filterStr);
+// } else {
filterStr = "*."+ mt.extension();
@@ -75,3 +75,3 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags
// qDebug("extension "+mt.extension());
- }
+// }
// channel = new QCopChannel( "QPE/fileDialog", this );
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index 19449cb..b8d62db 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -512,3 +512,3 @@ void TextEdit::fileOpen()
if(!b) {
- QString str = OFileDialog::getOpenFileName( 1,"/","", "text/plain", this );
+ QString str = OFileDialog::getOpenFileName( 1,"/","", "*", this );
if(!str.isEmpty() )
@@ -517,3 +517,3 @@ void TextEdit::fileOpen()
QString str;
- browseForFiles = new fileBrowser(this,tr("Open File"),TRUE,0, "text/*"); //
+ browseForFiles = new fileBrowser(this,tr("Open File"),TRUE,0, "*"); //
browseForFiles->setFileView( viewSelection );