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
11
src/core/iconimageprovider.hpp
Normal file
11
src/core/iconimageprovider.hpp
Normal file
|
@ -0,0 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include <qpixmap.h>
|
||||
#include <qquickimageprovider.h>
|
||||
|
||||
class IconImageProvider: public QQuickImageProvider {
|
||||
public:
|
||||
explicit IconImageProvider(): QQuickImageProvider(QQuickImageProvider::Pixmap) {}
|
||||
|
||||
QPixmap requestPixmap(const QString& id, QSize* size, const QSize& requestedSize) override;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue