forked from quickshell/quickshell
Also fixes qml incubation in general, which was completely broken, meaning the native qml Loader type should also work now.
16 lines
428 B
C++
16 lines
428 B
C++
#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;
|
|
}
|
|
}
|