qt: fix deprecated warning in color_scheme_model.cpp

This commit is contained in:
Fatih Uzunoglu 2024-04-16 17:44:43 +03:00 committed by Jean-Baptiste Kempf
parent 8a8cf4c8fc
commit 65bffbc158
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ bool ColorSchemeModel::setData(const QModelIndex &index,
if (role == Qt::CheckStateRole
&& checkIndex(index, CheckIndexOption::IndexIsValid)
&& index.row() != m_currentIndex
&& value.type() == QVariant::Bool
&& value.typeId() == QMetaType::Bool
&& value.toBool())
{
setCurrentIndex(index.row());