forked from quickshell/quickshell
core/icon: add icon image provider
This commit is contained in:
parent
8e530b6b77
commit
d47a7f2cff
5 changed files with 31 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
|||
#include <qqmlincubator.h>
|
||||
#include <qtimer.h>
|
||||
|
||||
#include "iconimageprovider.hpp"
|
||||
#include "incubator.hpp"
|
||||
#include "plugin.hpp"
|
||||
#include "qsintercept.hpp"
|
||||
|
@ -30,6 +31,8 @@ EngineGeneration::EngineGeneration(QmlScanner scanner)
|
|||
this->engine.addUrlInterceptor(&this->urlInterceptor);
|
||||
this->engine.setNetworkAccessManagerFactory(&this->interceptNetFactory);
|
||||
this->engine.setIncubationController(&this->delayedIncubationController);
|
||||
|
||||
this->engine.addImageProvider("icon", new IconImageProvider());
|
||||
}
|
||||
|
||||
EngineGeneration::~EngineGeneration() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue