Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/Geant4/toolx/Qt/s2q is written in an unsupported language. File is not indexed.

0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003 
0004 #ifndef toolx_Qt_s2q
0005 #define toolx_Qt_s2q
0006 
0007 #include <QtCore/qglobal.h> //For QT_VERSION.
0008 
0009 #include <QtCore/qstring.h>
0010 
0011 namespace toolx {
0012 namespace Qt {
0013 
0014 inline QString s2q(const std::string& a_s) {
0015 #if QT_VERSION < 0x050000
0016   return QString::fromAscii(a_s.c_str());
0017 #else
0018   return QString::fromLatin1(a_s.c_str());
0019 #endif
0020 }
0021 
0022 }}
0023 
0024 
0025 #endif