mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
FIX: passed QQmlContext in QQmlComponent::create
This commit is contained in:
parent
6cb052e79b
commit
c94976bf01
@ -190,7 +190,7 @@ void QmlBrowserActionButton::positionPopup(ClickController *clickController)
|
||||
return;
|
||||
}
|
||||
|
||||
QQuickWindow *quickWindow = dynamic_cast<QQuickWindow*>(m_popup->create());
|
||||
QQuickWindow *quickWindow = dynamic_cast<QQuickWindow*>(m_popup->create(m_popup->creationContext()));
|
||||
if (!quickWindow) {
|
||||
qWarning() << "Cannot create QQuickWindow from popup";
|
||||
return;
|
||||
|
@ -128,7 +128,7 @@ QWidget *QmlSideBarHelper::createSideBarWidget(BrowserWindow *mainWindow)
|
||||
{
|
||||
Q_UNUSED(mainWindow)
|
||||
|
||||
QQuickWindow *window = qobject_cast<QQuickWindow*>(m_item->create());
|
||||
QQuickWindow *window = qobject_cast<QQuickWindow*>(m_item->create(m_item->creationContext()));
|
||||
if (!window) {
|
||||
qWarning() << "Unable to create QQuickWindow";
|
||||
return nullptr;
|
||||
|
@ -26,7 +26,7 @@ QmlPluginLoader::QmlPluginLoader(const QString &path)
|
||||
|
||||
void QmlPluginLoader::createComponent()
|
||||
{
|
||||
m_interface = qobject_cast<QmlPluginInterface*>(m_component->create());
|
||||
m_interface = qobject_cast<QmlPluginInterface*>(m_component->create(m_component->creationContext()));
|
||||
|
||||
if (!m_interface) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user