Allow to enable HTML color (as tooltip must be "black")

This commit is contained in:
Klaus Basan
2018-11-17 22:58:06 +01:00
parent 3096822f70
commit c8ba6946bd
5 changed files with 14 additions and 11 deletions

View File

@@ -117,7 +117,7 @@ namespace BlackGui
void CLogComponent::appendStatusMessageToConsole(const CStatusMessage &statusMessage)
{
if (statusMessage.isEmpty()) return;
ui->tep_StatusPageConsole->appendHtml(statusMessage.toHtml(false));
ui->tep_StatusPageConsole->appendHtml(statusMessage.toHtml(false, true));
}
void CLogComponent::appendPlainTextToConsole(const QString &text)

View File

@@ -74,7 +74,7 @@ namespace BlackGui
{
// the underlying model object as summary
const CStatusMessage msg(this->at(index));
return msg.toHtml(false);
return msg.toHtml(false, false);
}
return CListModelTimestampObjects::data(index, role);
}

View File

@@ -346,7 +346,7 @@ namespace BlackGui
}
this->setModeToHTMLMessage();
ui->te_HTMLMessage->setText(message.toHtml(true));
ui->te_HTMLMessage->setText(message.toHtml(true, true));
this->display(timeOutMs);
}