~zsombi/ubuntu-ui-toolkit/listitemSelectModeBugs

« back to all changes in this revision

Viewing changes to src/Ubuntu/Components/plugin/plugin.cpp

  • Committer: Zsombor Egri
  • Date: 2015-11-16 06:35:05 UTC
  • mfrom: (1664.1.1 listitemSelectModeBugs)
  • Revision ID: zsombor.egri@canonical.com-20151116063505-cwn2qfks7qzk10g9
re-sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
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"
71
74
 
72
75
#include <sys/types.h>
73
76
#include <unistd.h>
228
231
    qmlRegisterType<UCUbuntuShapeOverlay>(uri, 1, 2, "UbuntuShapeOverlay");
229
232
 
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");
246
253
}
247
254
 
248
255
void UbuntuComponentsPlugin::initializeEngine(QQmlEngine *engine, const char *uri)