~haggai-eran/unity-2d/rtl-icon-geometry-952864

« back to all changes in this revision

Viewing changes to libunity-2d-private/Unity2d/plugin.cpp

. Fixes: . Approved by .

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
#include "desktopinfo.h"
42
42
#include "plugin.h"
43
43
#include "cacheeffect.h"
44
 
#include "colorizeeffect.h"
45
44
#include "iconutilities.h"
46
45
#include "cursorshapearea.h"
47
46
#include "unity2dtr.h"
82
81
#include "unity2dpanel.h"
83
82
#include "strutmanager.h"
84
83
 
85
 
#include "imageutilities.h"
86
84
#include "pointerbarrier.h"
87
85
 
88
86
#include <QtDeclarative/qdeclarative.h>
124
122
    qmlRegisterType<WorkspacesInfo>(); // Register the type as non creatable
125
123
 
126
124
    qmlRegisterType<CacheEffect>(uri, 0, 1, "CacheEffect");
127
 
    qmlRegisterType<ColorizeEffect>("Effects", 0, 1, "ColorizeEffect");
128
125
    qmlRegisterType<QGraphicsBlurEffect>("Effects", 1, 0, "Blur");
129
126
    qmlRegisterType<QGraphicsColorizeEffect>("Effects", 1, 0, "Colorize");
130
127
    qmlRegisterType<QGraphicsDropShadowEffect>("Effects", 1, 0, "DropShadow");
190
187
 
191
188
    qmlRegisterType<Unity2dPanel>(uri, 0, 1, "Unity2dPanel");
192
189
    qmlRegisterType<StrutManager>(uri, 0, 1, "StrutManager");
193
 
 
194
 
    qmlRegisterType<ImageUtilities>(uri, 0, 1, "ImageUtilities");
195
190
    
196
191
    qmlRegisterType<PointerBarrierWrapper>(uri, 0, 1, "PointerBarrier");
197
192
}
213
208
 
214
209
    /* Expose QConf objects as a context property not to initialize it multiple times */
215
210
    engine->rootContext()->setContextProperty("unity2dConfiguration", &unity2dConfiguration());
216
 
    engine->rootContext()->setContextProperty("unityConfiguration", &unityConfiguration());
217
211
    engine->rootContext()->setContextProperty("launcher2dConfiguration", &launcher2dConfiguration());
218
212
    engine->rootContext()->setContextProperty("dash2dConfiguration", &dash2dConfiguration());
219
213