Commit 81eabd46 authored by Antoine Regimbeau's avatar Antoine Regimbeau

COMP: change toAscii function to toLatin1

parent 86249207
......@@ -260,7 +260,7 @@ ToLocalString( const QString & );
/**
* \brief Convert and copy a QString to a STL std::string.
*
* The Unicode data is converted to 8-bit using the QString::toAscii()
* The Unicode data is converted to 8-bit using the QString::toLatin1()
* method.
*
* \param str The Unicode string to convert.
......@@ -517,7 +517,7 @@ inline
std::string
ToStdString( const QString& str )
{
return std::string( str.toAscii().constData() );
return std::string( str.toLatin1().constData() );
}
/*******************************************************************************/
......@@ -525,7 +525,7 @@ inline
const char*
ToString( const QString& str )
{
return str.toAscii().constData();
return str.toLatin1().constData();
}
/*******************************************************************************/
......
......@@ -231,7 +231,7 @@ AbstractImageModel
" (" +
qApp->translate(
"mvd::AbstractImageModel",
it2->toAscii().constData()
it2->toLatin1().constData()
)
+ ")"
);
......
......@@ -73,7 +73,7 @@ public:
std::string ToStdString()
{
return m_Input->text().toAscii().constData();
return m_Input->text().toLatin1().constData();
}
void ClearText()
......
......@@ -71,7 +71,7 @@ QtWidgetStringListParameter::UpdateStringList()
void QtWidgetStringListParameter::SetString(const QString& value)
{
m_StringListParam->AddString(value.toAscii().constData());
m_StringListParam->AddString(value.toLatin1().constData());
m_StringListParam->SetUserValue(true);
QString key( m_StringListParam->GetKey() );
emit ParameterChanged(key);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment