Skip to content
Snippets Groups Projects
Commit a7ac2ddf authored by Stepan Salenikovich's avatar Stepan Salenikovich
Browse files

TextRecording: add ContactMethod to data Roles

This way its easy to get the CM from the QModelIndex.

Change-Id: Ia05874e4b34585a5decd2813b49cbc3fa4ad8359
Tuleap: #268
parent fe841497
No related branches found
No related tags found
No related merge requests found
......@@ -678,6 +678,8 @@ QVariant InstantMessagingModel::data( const QModelIndex& idx, int role) const
return QVariant(n->m_pMessage->m_HTML);
case (int)Media::TextRecording::Role::HasText :
return n->m_pMessage->m_HasText;
case (int)Media::TextRecording::Role::ContactMethod :
return QVariant::fromValue(n->m_pContactMethod);
default:
break;
}
......
......@@ -60,6 +60,7 @@ public:
IsStatus ,
HTML ,
HasText ,
ContactMethod ,
};
//Constructor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment