/***************************************************************************
- * Copyright (C) 2005-2018 by the Quassel Project *
+ * Copyright (C) 2005-2020 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
UiStyle::SenderPrefixMode ChatViewSettings::senderPrefixDisplay() const
{
return static_cast<UiStyle::SenderPrefixMode>(
- localValue("SenderPrefixMode", QVariant::fromValue<UiStyle::SenderPrefixMode>(UiStyle::SenderPrefixMode::HighestMode)).toInt());
+ localValue("SenderPrefixMode", QVariant::fromValue(UiStyle::SenderPrefixMode::HighestMode)).toInt());
// 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.