[locale] Add operator << for LocaleConfiguration, for debugging

This commit is contained in:
Adriaan de Groot 2019-01-08 13:40:20 +01:00
parent dbe50fe3db
commit 2345b933cd

View File

@ -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