Fix enum-compare-switch clang warnings
We were comparing a value of type KStandardItemListView::ItemLayout with values of type KStandardItemListWidget::Layout.