kdeplasma-addons: remove bogus break statements

looks like they in the wrong place, huh?

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-03-22 11:47:17 +02:00
parent a90dae4ad9
commit cd2addffe2
2 changed files with 0 additions and 8 deletions

View file

@ -154,7 +154,6 @@ QVariant BackgroundListModel::data(const QModelIndex &index, int role) const
return title;
}
break;
case BackgroundDelegate::ScreenshotRole: {
if (m_previews.contains(config)) {
@ -181,11 +180,9 @@ QVariant BackgroundListModel::data(const QModelIndex &index, int role) const
const_cast<BackgroundListModel *>(this)->m_previews.insert(config, m_previewUnavailablePix);
return m_previewUnavailablePix;
}
break;
default:
return QVariant();
break;
}
return QVariant();
}

View file

@ -195,7 +195,6 @@ QVariant BackgroundListModel::data(const QModelIndex &index, int role) const
return title;
}
break;
case BackgroundDelegate::ScreenshotRole: {
if (m_previews.contains(b)) {
@ -220,11 +219,9 @@ QVariant BackgroundListModel::data(const QModelIndex &index, int role) const
const_cast<BackgroundListModel *>(this)->m_previews.insert(b, m_previewUnavailablePix);
return m_previewUnavailablePix;
}
break;
case BackgroundDelegate::AuthorRole:
return b->metadata().author();
break;
case BackgroundDelegate::ResolutionRole:{
QSize size = bestSize(b);
@ -235,11 +232,9 @@ QVariant BackgroundListModel::data(const QModelIndex &index, int role) const
return QString();
}
break;
default:
return QVariant();
break;
}
}