summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-04-22 02:08:33 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-04-22 02:25:05 (GMT)
commit5bcf21e6bbbfa2c990197695963caba25530827c (patch)
treeb88475e69a35d4e98754fe7b18f78b0cba6ce82a /src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp
parentf9062c44fc21da110fcfae68b19c70d4da7b3fc0 (diff)
downloadQt-5bcf21e6bbbfa2c990197695963caba25530827c.zip
Qt-5bcf21e6bbbfa2c990197695963caba25530827c.tar.gz
Qt-5bcf21e6bbbfa2c990197695963caba25530827c.tar.bz2
Remove (undocumented) QML bindings for effects.
Support for effects will be introduced in a future release, when we can make better guarantees about performance.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp b/src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp
index 8e34472..4238c53 100644
--- a/src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp
@@ -46,7 +46,6 @@
#include <QtGui/qgraphicseffect.h>
#include "private/qdeclarativeevents_p_p.h"
-#include "private/qdeclarativeeffects_p.h"
#include "private/qdeclarativescalegrid_p_p.h"
#include "private/qdeclarativeanimatedimage_p.h"
#include "private/qdeclarativeborderimage_p.h"
@@ -144,19 +143,6 @@ void QDeclarativeItemModule::defineModule()
qmlRegisterType<QAction>();
qmlRegisterType<QDeclarativePen>();
qmlRegisterType<QDeclarativeFlickableVisibleArea>();
-#ifdef QT_NO_GRAPHICSEFFECT
- QString no_graphicseffect = qApp->translate("QGraphicsBlurEffect","Qt was built without support for graphicseffects");
- qmlRegisterTypeNotAvailable("Qt",4,7,"Blur",no_graphicseffect);
- qmlRegisterTypeNotAvailable("Qt",4,7,"Colorize",no_graphicseffect);
- qmlRegisterTypeNotAvailable("Qt",4,7,"DropShadow",no_graphicseffect);
- qmlRegisterTypeNotAvailable("Qt",4,7,"Opacity",no_graphicseffect);
-#else
- qmlRegisterType<QGraphicsEffect>();
- qmlRegisterType<QGraphicsBlurEffect>("Qt",4,7,"Blur");
- qmlRegisterType<QGraphicsColorizeEffect>("Qt",4,7,"Colorize");
- qmlRegisterType<QGraphicsDropShadowEffect>("Qt",4,7,"DropShadow");
- qmlRegisterType<QGraphicsOpacityEffect>("Qt",4,7,"Opacity");
-#endif
qmlRegisterUncreatableType<QDeclarativeKeyNavigationAttached>("Qt",4,7,"KeyNavigation",QDeclarativeKeyNavigationAttached::tr("KeyNavigation is only available via attached properties"));
qmlRegisterUncreatableType<QDeclarativeKeysAttached>("Qt",4,7,"Keys",QDeclarativeKeysAttached::tr("Keys is only available via attached properties"));