userinputhandler: removed a qdebug, i forgot to remove
}
QString banMsg = QString("MODE %1 +b %2").arg(banChannel).arg(banUser);
}
QString banMsg = QString("MODE %1 +b %2").arg(banChannel).arg(banUser);
emit putRawLine(serverEncode(banMsg));
}
emit putRawLine(serverEncode(banMsg));
}
selectionMode = None;
isHighlight = false;
formatMsg(msg);
selectionMode = None;
isHighlight = false;
formatMsg(msg);
+
+ QtUiSettings s("QtUi/Colors");
+ _highlightColor = s.value("highlightColor", QVariant(QColor("lightcoral"))).value<QColor>();
}
ChatLineOld::~ChatLineOld() {
}
ChatLineOld::~ChatLineOld() {
p->drawRect(QRectF(pos, QSizeF(tsWidth + QtUi::style()->sepTsSender() + senderWidth + QtUi::style()->sepSenderText() + textWidth, height())));
} else {
if(isHighlight) {
p->drawRect(QRectF(pos, QSizeF(tsWidth + QtUi::style()->sepTsSender() + senderWidth + QtUi::style()->sepSenderText() + textWidth, height())));
} else {
if(isHighlight) {
- QtUiSettings s("QtUi/Colors");
- QColor highlightColor = s.value("highlightColor", QVariant(QColor("lightcoral"))).value<QColor>();
- p->setBrush(highlightColor /*pal.brush(QPalette::AlternateBase) */);
+ p->setBrush(_highlightColor /*pal.brush(QPalette::AlternateBase) */);
p->drawRect(QRectF(pos, QSizeF(tsWidth + QtUi::style()->sepTsSender() + senderWidth + QtUi::style()->sepSenderText() + textWidth, height())));
}
if(selectionMode == Partial) {
p->drawRect(QRectF(pos, QSizeF(tsWidth + QtUi::style()->sepTsSender() + senderWidth + QtUi::style()->sepSenderText() + textWidth, height())));
}
if(selectionMode == Partial) {
void precomputeLine();
QList<FormatRange> calcFormatRanges(const UiStyle::StyledText &);
QList<FormatRange> calcFormatRanges(const UiStyle::StyledText &, const QTextLayout::FormatRange &additional);
void precomputeLine();
QList<FormatRange> calcFormatRanges(const UiStyle::StyledText &);
QList<FormatRange> calcFormatRanges(const UiStyle::StyledText &, const QTextLayout::FormatRange &additional);
+
+ QColor _highlightColor;