qtquick: Don't hardcode "Frame.qml"

Allow the user to specify their impl
This commit is contained in:
Sergio Martins
2021-02-26 19:12:53 +00:00
parent 67a173ef53
commit c143f832c6
3 changed files with 8 additions and 1 deletions

View File

@@ -222,6 +222,11 @@ QUrl DefaultWidgetFactory::dockwidgetFilename() const
return QUrl(QStringLiteral("qrc:/kddockwidgets/private/quick/qml/DockWidget.qml"));
}
QUrl DefaultWidgetFactory::frameFilename() const
{
return QUrl(QStringLiteral("qrc:/kddockwidgets/private/quick/qml/Frame.qml"));
}
#endif // QtQuick
// iconForButtonType impl is the same for QtQuick and QtWidgets