author | zecke <zecke> | 2002-06-26 18:01:14 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-06-26 18:01:14 (UTC) |
commit | 125dc1fe52d7a3c8be1b955c79d729cc935c8b6d (patch) (unidiff) | |
tree | 018bb1bc68f03a3cc220ff0e2e22fbc62b0e9718 | |
parent | 1ddf9aa5ffc8dbb4ba290fa6a439b2d7681a0038 (diff) | |
download | opie-125dc1fe52d7a3c8be1b955c79d729cc935c8b6d.zip opie-125dc1fe52d7a3c8be1b955c79d729cc935c8b6d.tar.gz opie-125dc1fe52d7a3c8be1b955c79d729cc935c8b6d.tar.bz2 |
make use of improved mimetype handling
-rw-r--r-- | core/apps/textedit/textedit.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index c1f74bb..ccc43fa 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -505,17 +505,22 @@ void TextEdit::fileNew() | |||
505 | void TextEdit::fileOpen() | 505 | void TextEdit::fileOpen() |
506 | { | 506 | { |
507 | Config cfg("TextEdit"); | 507 | Config cfg("TextEdit"); |
508 | cfg.setGroup("View"); | 508 | cfg.setGroup("View"); |
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( 2,"/");//,"", "*", this ); | 513 | QMap<QString, QStringList> map; |
514 | map.insert(tr("All"), QStringList() ); | ||
515 | QStringList text; | ||
516 | text << "text/*"; | ||
517 | map.insert(tr("Text"), text ); | ||
518 | QString str = OFileDialog::getOpenFileName( 2,"/", QString::null, map);//,"", "*", this ); | ||
514 | if(!str.isEmpty() ) | 519 | if(!str.isEmpty() ) |
515 | openFile( str ); | 520 | openFile( str ); |
516 | // } else { | 521 | // } else { |
517 | // QString str; | 522 | // QString str; |
518 | // browseForFiles = new fileBrowser(this,tr("Open File"),TRUE,0, "*"); // | 523 | // browseForFiles = new fileBrowser(this,tr("Open File"),TRUE,0, "*"); // |
519 | // browseForFiles->setFileView( viewSelection ); | 524 | // browseForFiles->setFileView( viewSelection ); |
520 | // browseForFiles->showMaximized(); | 525 | // browseForFiles->showMaximized(); |
521 | // // if( result != -1 ) | 526 | // // if( result != -1 ) |