Qt 4.8
Classes | Functions
qlocale.h File Reference
#include <QtCore/qvariant.h>
#include <QtCore/qstring.h>
#include <QtCore/qobjectdefs.h>

Go to the source code of this file.

Classes

class  QLocale
 
struct  QLocale::Data
 
class  QSystemLocale
 
struct  QSystemLocale::CurrencyToStringArgument
 

Functions

Q_CORE_EXPORT QDataStreamoperator<< (QDataStream &, const QLocale &)
 
Q_CORE_EXPORT QDataStreamoperator>> (QDataStream &, QLocale &)
 
 Q_DECLARE_TYPEINFO (QLocale, Q_MOVABLE_TYPE)
 

Function Documentation

◆ operator<<()

Q_CORE_EXPORT QDataStream& operator<< ( QDataStream ,
const QLocale  
)

Definition at line 580 of file qlocale.cpp.

Referenced by QLocale::toCurrencyString().

581 {
582  ds << l.name();
583  return ds;
584 }
QFactoryLoader * l

◆ operator>>()

Q_CORE_EXPORT QDataStream& operator>> ( QDataStream ,
QLocale  
)

Definition at line 586 of file qlocale.cpp.

Referenced by QLocale::toCurrencyString().

587 {
588  QString s;
589  ds >> s;
590  l = QLocale(s);
591  return ds;
592 }
The QString class provides a Unicode character string.
Definition: qstring.h:83
QFactoryLoader * l

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( QLocale  ,
Q_MOVABLE_TYPE   
)