• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-runtime API Reference
  • KDE Home
  • Contact Us
 

QtExtraComponents

  • sources
  • kde-4.14
  • kde-runtime
  • plasma
  • declarativeimports
  • qtextracomponents
qtextracomponentsplugin.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2009 by Alan Alpert <alan.alpert@nokia.com>
3  * Copyright 2010 by Ménard Alexis <menard@kde.org>
4  * Copyright 2010 by Marco Martin <mart@kde.org>
5 
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Library General Public License as
8  * published by the Free Software Foundation; either version 2, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this program; if not, write to the
18  * Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  */
21 
22 #include "qtextracomponentsplugin.h"
23 
24 #include <QtDeclarative/qdeclarative.h>
25 
26 #include "qpixmapitem.h"
27 #include "qimageitem.h"
28 #include "qiconitem.h"
29 #include "mouseeventlistener.h"
30 #include "columnproxymodel.h"
31 
32 void QtExtraComponentsPlugin::registerTypes(const char *uri)
33 {
34  Q_ASSERT(uri == QLatin1String("org.kde.qtextracomponents"));
35 
36  qmlRegisterType<QPixmapItem>(uri, 0, 1, "QPixmapItem");
37  qmlRegisterType<QImageItem>(uri, 0, 1, "QImageItem");
38  qmlRegisterType<QIconItem>(uri, 0, 1, "QIconItem");
39  qmlRegisterType<MouseEventListener>(uri, 0, 1, "MouseEventListener");
40  qmlRegisterType<ColumnProxyModel>(uri, 0, 1, "ColumnProxyModel");
41 
42  qmlRegisterType<QAbstractItemModel>();
43  qRegisterMetaType<QModelIndex>("QModelIndex");
44 }
45 
46 
47 #include "qtextracomponentsplugin.moc"
48 
columnproxymodel.h
qiconitem.h
qimageitem.h
qtextracomponentsplugin.h
QtExtraComponentsPlugin::registerTypes
void registerTypes(const char *uri)
Definition: qtextracomponentsplugin.cpp:32
QLatin1String
qpixmapitem.h
mouseeventlistener.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

QtExtraComponents

Skip menu "QtExtraComponents"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kde-runtime API Reference

Skip menu "kde-runtime API Reference"
  • KCMShell
  • KNotify
  • Plasma Runtime
  •     PlasmaCore
  •     DragAndDrop
  •     PlasmaComponents
  •     PlasmaExtraComponents
  •     QtExtraComponents

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal