Skip to content

Commit

Permalink
Fix dark mode. (#481)
Browse files Browse the repository at this point in the history
Fix Tooltip.

Signed-off-by: Alexander Wenzel <[email protected]>
  • Loading branch information
alexmucde authored Jun 4, 2024
1 parent ff18f81 commit 39c9cd6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qdlt/qdltfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ void QDltFile::addFilterIndex (int index)
{
if(!filterFlag)
{
return QString(DEFAULT_COLOR);
return QString(""); // invalid colour
}

return filterList.checkMarker(msg);
Expand Down
2 changes: 1 addition & 1 deletion qdlt/qdltfilterlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ QColor QDltFilterList::checkMarker(QDltMsg &msg)
QString QDltFilterList::checkMarker(QDltMsg &msg)
{
QDltFilter *filter;
QString color=DEFAULT_COLOR;
QString color=""; // invalid colour

for(int numfilter=0;numfilter<mfilters.size();numfilter++)
{
Expand Down
19 changes: 19 additions & 0 deletions src/tablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,25 @@ TableModel::TableModel(const QString & /*data*/, QObject *parent)

if ( role == Qt::ToolTipRole )
{
getmessage( index.row(), filterposindex, &decodeflag, &msg, &lastmsg, qfile, &success);
if ( success == false )
{
return QString("!!CORRUPTED MESSAGE!!");
}
if((QDltSettingsManager::getInstance()->value("startup/pluginsEnabled", true).toBool()))
{
if ( decodeflag == 1 )
{
decodeflag = 0;
last_decoded_msg = msg;
pluginManager->decodeMsg(msg,!QDltOptManager::getInstance()->issilentMode());
last_decoded_msg = msg;
}
else
{
msg = last_decoded_msg;
}
}
return msg.toStringPayload().simplified();
}

Expand Down

0 comments on commit 39c9cd6

Please sign in to comment.