Merge pull request #506 from llange/qt6.3-itemdatarole

replace BackgroundColorRole/TextColorRole with BackgroundRole/ForegroundRole (qt6)
This commit is contained in:
Collin Kidder
2022-09-26 21:24:13 -05:00
committed by GitHub
+2 -2
View File
@@ -415,7 +415,7 @@ QVariant CANFrameModel::data(const QModelIndex &index, int role) const
const unsigned char *data = reinterpret_cast<const unsigned char *>(thisFrame.payload().constData());
int dataLen = thisFrame.payload().count();
if (role == Qt::BackgroundColorRole)
if (role == Qt::BackgroundRole)
{
if (dbcHandler != nullptr && interpretFrames && !ignoreDBCColors)
{
@@ -448,7 +448,7 @@ QVariant CANFrameModel::data(const QModelIndex &index, int role) const
}
}
if (role == Qt::TextColorRole)
if (role == Qt::ForegroundRole)
{
if (dbcHandler != nullptr && interpretFrames && !ignoreDBCColors)
{