Changeset View
Changeset View
Standalone View
Standalone View
src/viewer/ircview.cpp
| Show All 14 Lines | |||||
| 15 | */ | 15 | */ | ||
| 16 | 16 | | |||
| 17 | #include "ircview.h" | 17 | #include "ircview.h" | ||
| 18 | #include "channel.h" | 18 | #include "channel.h" | ||
| 19 | #include "dcc/chatcontainer.h" | 19 | #include "dcc/chatcontainer.h" | ||
| 20 | #include "application.h" | 20 | #include "application.h" | ||
| 21 | #include "highlight.h" | 21 | #include "highlight.h" | ||
| 22 | #include "sound.h" | 22 | #include "sound.h" | ||
| 23 | #include "emoticons.h" | | |||
| 24 | #include "notificationhandler.h" | 23 | #include "notificationhandler.h" | ||
| 25 | 24 | | |||
| 26 | #include <QDrag> | 25 | #include <QDrag> | ||
| 27 | #include <QScrollBar> | 26 | #include <QScrollBar> | ||
| 28 | #include <QTextBlock> | 27 | #include <QTextBlock> | ||
| 29 | #include <QPainter> | 28 | #include <QPainter> | ||
| 30 | #include <QTextDocumentFragment> | 29 | #include <QTextDocumentFragment> | ||
| 31 | #include <QMimeData> | 30 | #include <QMimeData> | ||
| ▲ Show 20 Lines • Show All 1131 Lines • ▼ Show 20 Line(s) | 1028 | { | |||
| 1163 | } | 1162 | } | ||
| 1164 | else if (doHighlight && (whoSent == ownNick) && Preferences::self()->highlightOwnLines()) | 1163 | else if (doHighlight && (whoSent == ownNick) && Preferences::self()->highlightOwnLines()) | ||
| 1165 | { | 1164 | { | ||
| 1166 | // highlight own lines | 1165 | // highlight own lines | ||
| 1167 | filteredLine = QLatin1String("<font color=\"") + Preferences::self()->highlightOwnLinesColor().name() + | 1166 | filteredLine = QLatin1String("<font color=\"") + Preferences::self()->highlightOwnLinesColor().name() + | ||
| 1168 | QLatin1String("\">") + filteredLine + QLatin1String("</font>"); | 1167 | QLatin1String("\">") + filteredLine + QLatin1String("</font>"); | ||
| 1169 | } | 1168 | } | ||
| 1170 | 1169 | | |||
| 1171 | filteredLine = Konversation::Emoticons::parseEmoticons(filteredLine); | | |||
| 1172 | | ||||
| 1173 | return filteredLine; | 1170 | return filteredLine; | ||
| 1174 | } | 1171 | } | ||
| 1175 | 1172 | | |||
| 1176 | QString IRCView::ircTextToHtml(const QString& text, bool parseURL, const QString& defaultColor, | 1173 | QString IRCView::ircTextToHtml(const QString& text, bool parseURL, const QString& defaultColor, | ||
| 1177 | const QString& whoSent, bool closeAllTags, QChar::Direction* direction) | 1174 | const QString& whoSent, bool closeAllTags, QChar::Direction* direction) | ||
| 1178 | { | 1175 | { | ||
| 1179 | TextHtmlData data; | 1176 | TextHtmlData data; | ||
| 1180 | data.defaultColor = defaultColor; | 1177 | data.defaultColor = defaultColor; | ||
| ▲ Show 20 Lines • Show All 1215 Lines • Show Last 20 Lines | |||||