QTfrontend/game.cpp
branchsdl2transition
changeset 11363 9006e158a81f
parent 11046 47a8c19ecb60
child 11364 b0df3f2fcafc
equal deleted inserted replaced
11362:ed5a6478e710 11363:9006e158a81f
   263         }
   263         }
   264         case 'y':
   264         case 'y':
   265         {
   265         {
   266             // copy string to clipboard
   266             // copy string to clipboard
   267             QApplication::clipboard()->setText(QString::fromUtf8(msg.mid(2)));
   267             QApplication::clipboard()->setText(QString::fromUtf8(msg.mid(2)));
   268             break;
       
   269         }
       
   270         case 'Y':
       
   271         {
       
   272             // paste clipboard to game
       
   273             SendIPC(QString("Y").toAscii() + QApplication::clipboard()->text().toUtf8().left(250).replace('\n', ' '));
       
   274             break;
   268             break;
   275         }
   269         }
   276         case 'i':
   270         case 'i':
   277         {
   271         {
   278             emit GameStats(msg.at(2), QString::fromUtf8(msg.mid(3)));
   272             emit GameStats(msg.at(2), QString::fromUtf8(msg.mid(3)));