Show full tile description as tooltip. Fixes #166

This commit is contained in:
Thomas Cujé 2019-03-06 17:42:10 +01:00
parent c258b4b709
commit 0524192658

View file

@ -932,7 +932,9 @@ void lcQPropertiesTree::SetPiece(const lcArray<lcObject*>& Selection, lcObject*
partColor->setText(1, color->Name);
partColor->setData(0, PropertyValueRole, ColorIndex);
partID->setText(1, Info ? Info->m_strDescription : QString());
QString text = Info ? Info->m_strDescription : QString();
partID->setText(1, text);
partID->setToolTip(1, text);
partID->setData(0, PropertyValueRole, qVariantFromValue((void*)Info));
}