1.1 --- a/mapeditor.cpp Tue Jan 15 13:06:59 2008 +0000
1.2 +++ b/mapeditor.cpp Fri Feb 01 15:28:35 2008 +0000
1.3 @@ -359,7 +359,7 @@
1.4
1.5 if (blockSaveState) return;
1.6
1.7 - if (debug) cout << "ME::saveState() for "<<mapName.ascii()<<endl;
1.8 + if (debug) cout << "ME::saveState() for "<<qPrintable (mapName)<<endl;
1.9
1.10 // Find out current undo directory
1.11 if (undosAvail<stepsTotal) undosAvail++;
1.12 @@ -424,7 +424,7 @@
1.13 cout << " undoSel="<<undoSelection.toStdString()<<endl;
1.14 cout << " redoCom="<<redoCom.toStdString()<<endl;
1.15 cout << " redoSel="<<redoSelection.toStdString()<<endl;
1.16 - if (saveSel) cout << " saveSel="<<saveSel->getSelectString().ascii()<<endl;
1.17 + if (saveSel) cout << " saveSel="<<qPrintable (saveSel->getSelectString())<<endl;
1.18 cout << " ---------------------------"<<endl;
1.19 }
1.20
1.21 @@ -1005,10 +1005,10 @@
1.22 {
1.23 if (selb->getHeading() == u)
1.24 {
1.25 - cout << "PASSED: " << c.ascii() << endl;
1.26 + cout << "PASSED: " << qPrintable (c) << endl;
1.27 } else
1.28 {
1.29 - cout << "FAILED: " << c.ascii() << endl;
1.30 + cout << "FAILED: " << qPrintable (c) << endl;
1.31 }
1.32 }
1.33 }
1.34 @@ -4841,7 +4841,7 @@
1.35 {
1.36 if (debug)
1.37 foreach (QString format,event->mimeData()->formats())
1.38 - cout << "MapEditor: Dropped format: "<<format.ascii()<<endl;
1.39 + cout << "MapEditor: Dropped format: "<<qPrintable (format)<<endl;
1.40
1.41
1.42 QList <QUrl> uris;
1.43 @@ -4944,7 +4944,7 @@
1.44 connect(clientSocket, SIGNAL(error(QAbstractSocket::SocketError)),
1.45 this, SLOT(displayNetworkError(QAbstractSocket::SocketError)));
1.46 netstate=Client;
1.47 - cout<<"connected to "<<server.ascii()<<" port "<<port<<endl;
1.48 + cout<<"connected to "<<qPrintable (server)<<" port "<<port<<endl;
1.49
1.50
1.51 }
1.52 @@ -4955,7 +4955,7 @@
1.53 connect(newClient, SIGNAL(disconnected()),
1.54 newClient, SLOT(deleteLater()));
1.55
1.56 - cout <<"ME::newClient at "<<newClient->peerAddress().toString().ascii()<<endl;
1.57 + cout <<"ME::newClient at "<<qPrintable( newClient->peerAddress().toString() )<<endl;
1.58
1.59 clientList.append (newClient);
1.60 }
1.61 @@ -4985,11 +4985,11 @@
1.62 out << bs;
1.63
1.64 if (debug)
1.65 - cout << "ME::sendData bs="<<bs<<" counter="<<sendCounter<<" s="<<s.ascii()<<endl;
1.66 + cout << "ME::sendData bs="<<bs<<" counter="<<sendCounter<<" s="<<qPrintable(s)<<endl;
1.67
1.68 for (int i=0; i<clientList.size(); ++i)
1.69 {
1.70 - //cout << "Sending \""<<s.ascii()<<"\" to "<<clientList.at(i)->peerAddress().toString().ascii()<<endl;
1.71 + //cout << "Sending \""<<qPrintable (s)<<"\" to "<<qPrintable (clientList.at(i)->peerAddress().toString())<<endl;
1.72 clientList.at(i)->write (block);
1.73 }
1.74 }
1.75 @@ -5012,7 +5012,7 @@
1.76 QString t;
1.77 in >>t;
1.78 if (debug)
1.79 - cout << " t="<<t.ascii()<<endl;
1.80 + cout << " t="<<qPrintable (t)<<endl;
1.81 parseAtom (t);
1.82 }
1.83 return;