mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-13 02:00:35 +05:00
Change name of button in export file selection dialog
This commit is contained in:
parent
eb028cc849
commit
68d2136e8c
@ -6461,6 +6461,10 @@ Do you want to create new material?</translation>
|
||||
<source>GEOM_EXPORTXAO_LFIELDS</source>
|
||||
<translation>Fields</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>EXPORT_DLG_ACCEPT</source>
|
||||
<translation>OK</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ImportExportGUI_ImportXAODlg</name>
|
||||
|
@ -6414,6 +6414,10 @@ Voulez-vous en créer un nouveau ?</translation>
|
||||
<source>GEOM_EXPORTXAO_LFIELDS</source>
|
||||
<translation>Champs</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>EXPORT_DLG_ACCEPT</source>
|
||||
<translation>OK</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ImportExportGUI_ImportXAODlg</name>
|
||||
|
@ -337,11 +337,16 @@ void ImportExportGUI_ExportXAODlg::SetEditCurrentArgument()
|
||||
//=================================================================================
|
||||
void ImportExportGUI_ExportXAODlg::btnFileSelectClicked()
|
||||
{
|
||||
QString selFile = QFileDialog::getSaveFileName(this, tr("GEOM_SELECT_EXPORT_XAO"),
|
||||
QString(), tr("XAO_FILES"));
|
||||
if (!selFile.isEmpty())
|
||||
QFileDialog dlg(this, tr("GEOM_SELECT_EXPORT_XAO") );
|
||||
dlg.setLabelText( QFileDialog::Accept, tr("EXPORT_DLG_ACCEPT") );
|
||||
dlg.setNameFilter( tr("XAO_FILES") );
|
||||
if (dlg.exec())
|
||||
{
|
||||
ledFileName->setText(selFile);
|
||||
QStringList selFiles = dlg.selectedFiles();
|
||||
if (selFiles.length() > 0 && !selFiles[0].isEmpty())
|
||||
{
|
||||
ledFileName->setText(selFiles[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user