mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Correct, cleanup, translate and unify file filters
Correct spelling and typos in file filters. Unify and translate file filter names. Don't pass a file filter to a directory open dialog - not needed. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
92ba4b9cc7
commit
8b56dc30d7
9 changed files with 105 additions and 77 deletions
|
@ -129,7 +129,7 @@ void PrintOptions::on_editButton_clicked()
|
|||
void PrintOptions::on_importButton_clicked()
|
||||
{
|
||||
QString filename = QFileDialog::getOpenFileName(this, tr("Import template file"), "",
|
||||
tr("HTML files (*.html)"));
|
||||
tr("HTML files") + " (*.html)");
|
||||
if (filename.isEmpty())
|
||||
return;
|
||||
QFileInfo fileInfo(filename);
|
||||
|
@ -142,7 +142,7 @@ void PrintOptions::on_importButton_clicked()
|
|||
void PrintOptions::on_exportButton_clicked()
|
||||
{
|
||||
QString filename = QFileDialog::getSaveFileName(this, tr("Export template files as"), "",
|
||||
tr("HTML files (*.html)"));
|
||||
tr("HTML files") + " (*.html)");
|
||||
if (filename.isEmpty())
|
||||
return;
|
||||
QFile::copy(getPrintingTemplatePathUser() + QDir::separator() + getSelectedTemplate(), filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue