tests/auto/linguist/lupdate/testdata/good/parsecpp/main.cpp
changeset 22 79de32ba3296
parent 18 2f34d5167611
child 33 3e2da88830cd
equal deleted inserted replaced
19:fcece45ef507 22:79de32ba3296
   250 
   250 
   251 
   251 
   252 
   252 
   253 //: This is a message without a source string
   253 //: This is a message without a source string
   254 QString test = qtTrId("yet_another_id");
   254 QString test = qtTrId("yet_another_id");
       
   255 
       
   256 
       
   257 
       
   258 // QTBUG-9276: context in static initializers
       
   259 class Bogus : QObject {
       
   260     Q_OBJECT
       
   261 
       
   262     static const char * const s_strings[];
       
   263 };
       
   264 
       
   265 const char * const Bogus::s_strings[] = {
       
   266     QT_TR_NOOP("this should be in Bogus")
       
   267 };
       
   268 
       
   269 const char * const Bogus::s_strings[SIZE] = {
       
   270     QT_TR_NOOP("this should be in Bogus")
       
   271 };
       
   272 
       
   273 void bogosity()
       
   274 {
       
   275     // no spaces here. test collateral damage from ignoring equal sign
       
   276     Class::member=QObject::tr("just QObject");
       
   277 }