qtquick: Don't hardcode "FloatingWindow.qml"

Allow the user to specify their impl
This commit is contained in:
Sergio Martins
2021-02-26 19:21:42 +00:00
parent c143f832c6
commit 482757b1cc
3 changed files with 10 additions and 1 deletions

View File

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