Several OS/2 fixes from Silvan Scherrer

This commit is contained in:
Christophe Dumez 2010-06-22 19:17:47 +00:00
commit 778cfff4b3
9 changed files with 34 additions and 26 deletions

View file

@ -1565,7 +1565,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
if(consoleMessages.size() > 100) {
consoleMessages.removeFirst();
}
#ifdef Q_WS_WIN
#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
msg = msg.replace("/", "\\");
#endif
consoleMessages.append(QString::fromUtf8("<font color='grey'>")+ QDateTime::currentDateTime().toString(QString::fromUtf8("dd/MM/yyyy hh:mm:ss")) + QString::fromUtf8("</font> - <font color='") + color.name() +QString::fromUtf8("'><i>") + msg + QString::fromUtf8("</i></font>"));