mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 10:22:52 +00:00
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:
parent
a90dae4ad9
commit
cd2addffe2
2 changed files with 0 additions and 8 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue