#include <QAbstractItemView>
#include <QMimeData>
-#if QT_VERSION < 0x050000
-#include <QTextDocument> // for Qt::escape()
-#endif
#include "buffermodel.h"
#include "buffersettings.h"
{
// QString.replace() doesn't guarantee the source string will remain constant.
// Use a local variable to avoid compiler errors.
-#if QT_VERSION < 0x050000
- QString formattedString = Qt::escape(string);
-#else
QString formattedString = string.toHtmlEscaped();
-#endif
return (useNonbreakingSpaces ? formattedString.replace(" ", " ") : formattedString);
}
NetworkItem::escapeHTML(tr("Identified for this nick")),
!accountAdded);
// Don't add the account row again if information's already added via account-notify
- // Mark the row as added
- accountAdded = true;
+ // Not used further down...
+ // accountAdded = true;
} else {
addRow(NetworkItem::escapeHTML(tr("Service Reply"), true),
NetworkItem::escapeHTML(_ircUser->whoisServiceReply()),
NetworkItem::escapeHTML(tr("Identified for this nick")),
!accountAdded);
// Don't add the account row again if information's already added via account-notify
- // Mark the row as added
- accountAdded = true;
+ // Not used further down...
+ // accountAdded = true;
} else {
addRow(NetworkItem::escapeHTML(tr("Service Reply"), true),
NetworkItem::escapeHTML(_ircUser->whoisServiceReply()),