-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <SUIT_ResourceMgr.h>
#include <SUIT_Session.h>
+#include <Qtx.h>
+
#include <QtxDoubleSpinBox.h>
#include <QtxIntSpinBox.h>
#include <QLayout>
#include <QLineEdit>
#include <QPushButton>
+#include <QDir>
/*!
* Constructor
if( myFileName.isNull() )
return;
- myRecorder->SetName( (const char*)myFileName.toLatin1() );
+ myRecorder->SetName( (const char*)myFileName.toUtf8() );
myRecorder->SetUseSkippedFrames( myRecordingModeComboBox->currentIndex() == 0 );
myRecorder->SetNbFPS( myFPSSpinBox->value() );
aFilter.append( tr( "FLT_AVI_FILES" ) );
aFilter.append( tr( "FLT_ALL_FILES" ) );
- QString aFileName = SUIT_FileDlg::getFileName( this, getenv( "HOME" ), aFilter,
+ QString aFileName = SUIT_FileDlg::getFileName( this, QDir::homePath(), aFilter,
tr( "FILE_NAME" ), false );
if( aFileName.isNull() )