UiStyle::SenderPrefixMode ChatViewSettings::senderPrefixDisplay() const
{
return static_cast<UiStyle::SenderPrefixMode>(
UiStyle::SenderPrefixMode ChatViewSettings::senderPrefixDisplay() const
{
return static_cast<UiStyle::SenderPrefixMode>(
// Cast the QVariant to an integer, then cast that to the enum class.
// .canConvert<UiStyle::SenderPrefixMode>() returned true, but
// .value<UiStyle::SenderPrefixMode>(); always gave the default value 0.
// Cast the QVariant to an integer, then cast that to the enum class.
// .canConvert<UiStyle::SenderPrefixMode>() returned true, but
// .value<UiStyle::SenderPrefixMode>(); always gave the default value 0.