1 #include "windowrole.h" 2 #include <stdexcept> 3 to_QString(const WindowRole & wr)4QString to_QString( const WindowRole& wr) { 5 if( wr == WindowRole::AudienceWindow ) { 6 return QString::fromUtf8("Audience_Window"); 7 } else { 8 return QString::fromUtf8("Secondary_Window"); 9 } 10 } 11