diff --git a/filters/asyexporter.cc b/filters/asyexporter.cc --- a/filters/asyexporter.cc +++ b/filters/asyexporter.cc @@ -55,7 +55,7 @@ void AsyExporter::run( const KigPart& doc, KigWidget& w ) { KigFileDialog* kfd = new KigFileDialog( - QStandardPaths::writableLocation( QStandardPaths::DocumentsLocation ), i18n( "*.asy|Asymptote Documents (*.asy)" ), + QStandardPaths::writableLocation( QStandardPaths::DocumentsLocation ), i18n( "Asymptote Documents (*.asy)" ), i18n( "Export as Asymptote script" ), &w ); kfd->setOptionCaption( i18n( "Asymptote Options" ) ); AsyExporterOptions* opts = new AsyExporterOptions( 0L ); diff --git a/filters/latexexporter.cc b/filters/latexexporter.cc --- a/filters/latexexporter.cc +++ b/filters/latexexporter.cc @@ -535,7 +535,7 @@ void LatexExporter::run( const KigPart& doc, KigWidget& w ) { KigFileDialog* kfd = new KigFileDialog( - QStandardPaths::writableLocation( QStandardPaths::DocumentsLocation ), i18n( "*.tex|Latex Documents (*.tex)" ), + QStandardPaths::writableLocation( QStandardPaths::DocumentsLocation ), i18n( "Latex Documents (*.tex)" ), i18n( "Export as Latex" ), &w ); kfd->setOptionCaption( i18n( "Latex Options" ) ); LatexExporterOptions* opts = new LatexExporterOptions( 0L ); diff --git a/filters/svgexporter.cc b/filters/svgexporter.cc --- a/filters/svgexporter.cc +++ b/filters/svgexporter.cc @@ -56,7 +56,7 @@ void SVGExporter::run( const KigPart& part, KigWidget& w ) { KigFileDialog* kfd = new KigFileDialog( - QStandardPaths::writableLocation( QStandardPaths::PicturesLocation ), i18n( "*.svg|Scalable Vector Graphics (*.svg)" ), + QStandardPaths::writableLocation( QStandardPaths::PicturesLocation ), i18n( "Scalable Vector Graphics (*.svg)" ), i18n( "Export as SVG" ), &w ); kfd->setOptionCaption( i18n( "SVG Options" ) ); SVGExporterOptions* opts = new SVGExporterOptions( 0L ); diff --git a/filters/xfigexporter.cc b/filters/xfigexporter.cc --- a/filters/xfigexporter.cc +++ b/filters/xfigexporter.cc @@ -574,7 +574,7 @@ void XFigExporter::run( const KigPart& doc, KigWidget& w ) { KigFileDialog* kfd = new KigFileDialog( - QStandardPaths::writableLocation( QStandardPaths::PicturesLocation ), i18n( "*.fig|XFig Documents (*.fig)" ), + QStandardPaths::writableLocation( QStandardPaths::PicturesLocation ), i18n( "XFig Documents (*.fig)" ), i18n( "Export as XFig File" ), &w ); if ( !kfd->exec() ) return; diff --git a/kig/kig_part.cpp b/kig/kig_part.cpp --- a/kig/kig_part.cpp +++ b/kig/kig_part.cpp @@ -723,8 +723,7 @@ bool KigPart::internalSaveAs() { // this slot is connected to the KStandardAction::saveAs action... - QString formats = i18n( "*.kig|Kig Documents (*.kig)\n" - "*.kigz|Compressed Kig Documents (*.kigz)" ); + QString formats = i18n( "Kig Documents (*.kig);;Compressed Kig Documents (*.kigz)" ); QString currentDir = url().toLocalFile(); if ( currentDir.isNull() ) diff --git a/modes/typesdialog.cpp b/modes/typesdialog.cpp --- a/modes/typesdialog.cpp +++ b/modes/typesdialog.cpp @@ -463,7 +463,7 @@ types.push_back( macro ); } if (types.empty()) return; - QString file_name = QFileDialog::getSaveFileName( this, i18n( "Export Types" ), QStandardPaths::writableLocation( QStandardPaths::DocumentsLocation ), i18n("*.kigt|Kig Types Files\n*|All Files") ); + QString file_name = QFileDialog::getSaveFileName( this, i18n( "Export Types" ), QStandardPaths::writableLocation( QStandardPaths::DocumentsLocation ), i18n("Kig Types Files (*.kigt);;All Files (*)") ); if ( file_name.isNull() ) return; QFile fi( file_name ); @@ -479,12 +479,12 @@ { //TODO : Do this through MIME types QStringList toolFilters; - toolFilters << i18n( "*.kigt|Kig Types Files" ); + toolFilters << i18n( "Kig Types Files (*.kigt)" ); #ifdef WITH_GEOGEBRA - toolFilters << i18n( "*.ggt|Geogebra Tool Files" ); + toolFilters << i18n( "Geogebra Tool Files (*.ggt)" ); #endif //WITH_GEOGEBRA - toolFilters << i18n( "*|All Files" ); - QStringList file_names = QFileDialog::getOpenFileNames( this, i18n( "Import Types" ), QStandardPaths::writableLocation( QStandardPaths::DocumentsLocation ), toolFilters.join( QLatin1String( "\n" ) ) ); + toolFilters << i18n( "All Files (*)" ); + QStringList file_names = QFileDialog::getOpenFileNames( this, i18n( "Import Types" ), QStandardPaths::writableLocation( QStandardPaths::DocumentsLocation ), toolFilters.join( QLatin1String( ";;" ) ) ); std::vector macros; for ( QStringList::const_iterator i = file_names.constBegin();