From 2345b933cdb520d0a3659071734c6c4f0d89a57c Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 8 Jan 2019 13:40:20 +0100 Subject: [PATCH] [locale] Add operator << for LocaleConfiguration, for debugging --- src/modules/locale/LocaleConfiguration.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/locale/LocaleConfiguration.h b/src/modules/locale/LocaleConfiguration.h index 0bd310d9d..7e835084f 100644 --- a/src/modules/locale/LocaleConfiguration.h +++ b/src/modules/locale/LocaleConfiguration.h @@ -20,6 +20,7 @@ #ifndef LOCALECONFIGURATION_H #define LOCALECONFIGURATION_H +#include #include #include @@ -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