1
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:
Anmol Gautam 2018-06-23 00:46:46 +05:30
parent 6cb052e79b
commit c94976bf01
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;