From 125dc1fe52d7a3c8be1b955c79d729cc935c8b6d Mon Sep 17 00:00:00 2001 From: zecke Date: Wed, 26 Jun 2002 18:01:14 +0000 Subject: make use of improved mimetype handling --- (limited to 'core') 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 @@ -510,7 +510,12 @@ void TextEdit::fileOpen() // if(cfg.readEntry("useOldFileDialog") == "TRUE") // b=TRUE; // if(!b) { - QString str = OFileDialog::getOpenFileName( 2,"/");//,"", "*", this ); + QMap map; + map.insert(tr("All"), QStringList() ); + QStringList text; + text << "text/*"; + map.insert(tr("Text"), text ); + QString str = OFileDialog::getOpenFileName( 2,"/", QString::null, map);//,"", "*", this ); if(!str.isEmpty() ) openFile( str ); // } else { -- cgit v0.9.0.2