[locale] Add operator << for LocaleConfiguration, for debugging
This commit is contained in:
parent
dbe50fe3db
commit
2345b933cd
@ -20,6 +20,7 @@
|
||||
#ifndef LOCALECONFIGURATION_H
|
||||
#define LOCALECONFIGURATION_H
|
||||
|
||||
#include <QDebug>
|
||||
#include <QString>
|
||||
#include <QMap>
|
||||
|
||||
@ -65,4 +66,9 @@ private:
|
||||
QString myLanguageLocaleBcp47;
|
||||
};
|
||||
|
||||
inline QDebug& operator <<( QDebug& s, const LocaleConfiguration& l )
|
||||
{
|
||||
return s << l.lang << '(' << l.toBcp47() << ") +" << l.lc_numeric;
|
||||
}
|
||||
|
||||
#endif // LOCALECONFIGURATION_H
|
||||
|
Loading…
Reference in New Issue
Block a user