1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00

Fix missing clearComponentCache for macos

This commit is contained in:
Elias Steurer 2021-09-03 13:02:29 +02:00
parent 66a6a30c04
commit 3240c84db8
4 changed files with 8 additions and 1 deletions

View File

@ -150,6 +150,7 @@ public slots:
virtual void destroyThis() { }
virtual void setVisible(bool show) { Q_UNUSED(show) }
virtual void messageReceived(QString key, QString value) final;
virtual void clearComponentCache() {}
virtual void replaceWallpaper(
const QString absolutePath,
const QString file,

View File

@ -63,3 +63,8 @@ void MacWindow::destroyThis()
{
QCoreApplication::quit();
}
void MacWindow::clearComponentCache()
{
m_window.engine()->clearComponentCache();
}

View File

@ -65,6 +65,7 @@ signals:
public slots:
void setVisible(bool show) override;
void destroyThis() override;
void clearComponentCache() override;
private:
QQuickView m_window;

View File

@ -73,7 +73,7 @@ public slots:
void setVisible(bool show) override;
void destroyThis() override;
void terminate();
void clearComponentCache();
void clearComponentCache() override;
void setWindowsDesktopProperties(WindowsDesktopProperties* windowsDesktopProperties)
{