summaryrefslogtreecommitdiff
Unidiff
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
@@ -52,29 +52,29 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags
52 setCaption(tr( name ) ); 52 setCaption(tr( name ) );
53 53
54// getMimeTypes(); 54// getMimeTypes();
55 55
56 mimeType = mimeFilter; 56// mimeType = mimeFilter;
57 MimeType mt( mimeType); 57// MimeType mt( mimeType);
58 58
59 if( mt.extension().isEmpty()) { 59// if( mt.extension().isEmpty()) {
60 60
61 QStringList filterList; 61// QStringList filterList;
62 filterList=QStringList::split(";",mimeFilter,FALSE); 62// filterList=QStringList::split(";",mimeFilter,FALSE);
63 63
64 for ( QStringList::Iterator it = filterList.begin(); it != filterList.end(); ++it ) { 64// for ( QStringList::Iterator it = filterList.begin(); it != filterList.end(); ++it ) {
65 printf( "%s \n", (*it).latin1() ); 65// printf( "%s \n", (*it).latin1() );
66 } 66// }
67 67
68 filterStr = mimeFilter.right(mimeFilter.length() - mimeFilter.find("/",0,TRUE) - 1);// "*"; 68// filterStr = mimeFilter.right(mimeFilter.length() - mimeFilter.find("/",0,TRUE) - 1);// "*";
69 69
70 qDebug(filterStr); 70// qDebug(filterStr);
71 } else { 71// } else {
72 filterStr = "*."+ mt.extension(); 72 filterStr = "*."+ mt.extension();
73// qDebug("description "+mt.description()); 73// qDebug("description "+mt.description());
74// qDebug( "id "+mt.id()); 74// qDebug( "id "+mt.id());
75// qDebug("extension "+mt.extension()); 75// qDebug("extension "+mt.extension());
76 } 76// }
77// channel = new QCopChannel( "QPE/fileDialog", this ); 77// channel = new QCopChannel( "QPE/fileDialog", this );
78// connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), 78// connect( channel, SIGNAL(received(const QCString&, const QByteArray&)),
79// this, SLOT(receive(const QCString&, const QByteArray&)) ); 79// this, SLOT(receive(const QCString&, const QByteArray&)) );
80 80
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
@@ -509,14 +509,14 @@ void TextEdit::fileOpen()
509 bool b=FALSE; 509 bool b=FALSE;
510 if(cfg.readEntry("useOldFileDialog") == "TRUE") 510 if(cfg.readEntry("useOldFileDialog") == "TRUE")
511 b=TRUE; 511 b=TRUE;
512 if(!b) { 512 if(!b) {
513 QString str = OFileDialog::getOpenFileName( 1,"/","", "text/plain", this ); 513 QString str = OFileDialog::getOpenFileName( 1,"/","", "*", this );
514 if(!str.isEmpty() ) 514 if(!str.isEmpty() )
515 openFile( str ); 515 openFile( str );
516 } else { 516 } else {
517 QString str; 517 QString str;
518 browseForFiles = new fileBrowser(this,tr("Open File"),TRUE,0, "text/*"); // 518 browseForFiles = new fileBrowser(this,tr("Open File"),TRUE,0, "*"); //
519 browseForFiles->setFileView( viewSelection ); 519 browseForFiles->setFileView( viewSelection );
520 browseForFiles->showMaximized(); 520 browseForFiles->showMaximized();
521// if( result != -1 ) 521// if( result != -1 )
522 522