KPeople

peopleqmlplugin.cpp
1/*
2 Persons Model
3 SPDX-FileCopyrightText: 2012 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6*/
7
8#include "peopleqmlplugin.h"
9
10#include <QQmlEngine>
11
12#include "avatarimageprovider.h"
13
14void PeopleQMLPlugin::initializeEngine(QQmlEngine *engine, const char *uri)
15{
16 Q_ASSERT(uri == QByteArrayLiteral("org.kde.people"));
17 engine->addImageProvider(QStringLiteral("kpeople-avatar"), new AvatarImageProvider());
18}
19
20void PeopleQMLPlugin::registerTypes(const char * /*uri*/)
21{
22}
23
24#include "moc_peopleqmlplugin.cpp"
25#include "peopleqmlplugin.moc"
An image provider for displaying a contact's photo.
void addImageProvider(const QString &providerId, QQmlImageProviderBase *provider)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.