forked from quickshell/quickshell
core/lazyloader: add LazyLoader
Also fixes qml incubation in general, which was completely broken, meaning the native qml Loader type should also work now.
This commit is contained in:
parent
8d742e315e
commit
518977932d
11 changed files with 499 additions and 0 deletions
16
src/core/incubator.cpp
Normal file
16
src/core/incubator.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include "incubator.hpp"
|
||||
|
||||
#include <qlogging.h>
|
||||
#include <qloggingcategory.h>
|
||||
#include <qqmlincubator.h>
|
||||
#include <qtmetamacros.h>
|
||||
|
||||
Q_LOGGING_CATEGORY(logIncubator, "quickshell.incubator", QtWarningMsg);
|
||||
|
||||
void QsQmlIncubator::statusChanged(QQmlIncubator::Status status) {
|
||||
switch (status) {
|
||||
case QQmlIncubator::Ready: emit this->completed(); break;
|
||||
case QQmlIncubator::Error: emit this->failed(); break;
|
||||
default: break;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue