tests: Make tst_view test View, not ViewWrapper

This commit is contained in:
Sergio Martins
2022-04-30 11:08:54 +01:00
parent b6d87d10c4
commit 712751e89b
10 changed files with 46 additions and 17 deletions

View File

@@ -93,6 +93,7 @@ static Controller *controllerForWidget(QWidget *widget)
case Type::LayoutItem:
case Type::DropIndicatorOverlayInterface:
case Type::ViewWrapper:
case Type::None:
// skip internal types
continue;
}
@@ -227,6 +228,7 @@ bool ViewWrapper_qtwidgets::is(Type t) const
case Type::MDIArea:
return qobject_cast<MDIArea *>(m_widget);
case Type::LayoutItem:
case Type::None:
case Type::DropIndicatorOverlayInterface:
qWarning() << Q_FUNC_INFO << "These are framework internals that are not wrapped";
return false;