63
63
#include "uclistitemstyle.h"
64
64
#include "ucserviceproperties.h"
65
65
#include "ucnamespace.h"
66
#include "ucslotslayout.h"
66
67
#include "ucactionitem.h"
67
68
#include "uchaptics.h"
68
69
#include "ucabstractbutton.h"
69
70
#include "ucheader.h"
70
71
#include "uclabel.h"
72
#include "uclistitemlayout.h"
73
#include "ucbottomedgehint.h"
72
75
#include <sys/types.h>
73
76
#include <unistd.h>
228
231
qmlRegisterType<UCUbuntuShapeOverlay>(uri, 1, 2, "UbuntuShapeOverlay");
230
233
// register 1.3 API
231
qmlRegisterType<UCItemAttached>();
232
234
qmlRegisterType<UCListItem, 1>(uri, 1, 3, "ListItem");
233
235
qmlRegisterType<UCListItemExpansion>();
234
236
qmlRegisterType<UCTheme>(uri, 1, 3, "ThemeSettings");
237
239
qmlRegisterType<UCStyledItemBase, 2>(uri, 1, 3, "StyledItem");
238
240
qmlRegisterCustomType<UCStyleHints>(uri, 1, 3, "StyleHints", new UCStyleHintsParser);
239
241
qmlRegisterType<UCAction, 1>(uri, 1, 3, "Action");
242
qmlRegisterType<UCSlotsLayout>(uri, 1, 3, "SlotsLayout");
240
243
qmlRegisterType<UCUbuntuShape, 2>(uri, 1, 3, "UbuntuShape");
241
244
qmlRegisterType<UCProportionalShape>(uri, 1, 3, "ProportionalShape");
242
245
qmlRegisterType<LiveTimer>(uri, 1, 3, "LiveTimer");
243
246
qmlRegisterType<UCAbstractButton>(uri, 1, 3, "AbstractButton");
247
qmlRegisterUncreatableType<UCSlotsAttached>(uri, 1, 3, "SlotsAttached", "Not instantiable");
248
qmlRegisterUncreatableType<UCSlotsLayoutPadding>(uri, 1, 3, "SlotsLayoutPadding", "Not instantiable");
249
qmlRegisterType<UCListItemLayout>(uri, 1, 3, "ListItemLayout");
244
250
qmlRegisterType<UCHeader>(uri, 1, 3, "Header");
245
qmlRegisterType<UCLabel, 1>(uri, 1, 3, "Label");
251
qmlRegisterType<UCLabel>(uri, 1, 3, "Label");
252
qmlRegisterType<UCBottomEdgeHint>(uri, 1, 3, "BottomEdgeHint");
248
255
void UbuntuComponentsPlugin::initializeEngine(QQmlEngine *engine, const char *uri)