diff options
author | Fabian Bumberger <fbumberger@rim.com> | 2013-01-14 15:00:41 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-28 20:42:48 +0100 |
commit | 233e83b20512a5e3748542f1c279a5c7ec6310ad (patch) | |
tree | e8b900290c08f708753e08f3f9d356f65d07f7e5 /src/quick/items/qquickitemsmodule.cpp | |
parent | 8b62bb86cd94287a29fd1474efe04822523600df (diff) |
Allow aligning items in a grid
This change introduces two new properties, horizontalItemAlignment and verticalItemAlignment to a
Grid element. This gives the user the possibility to align the items.
Change-Id: I7322a689f1bbc1da342bd618f6c30dd8c139ee29
Reviewed-by: Alan Alpert <aalpert@rim.com>
Diffstat (limited to 'src/quick/items/qquickitemsmodule.cpp')
-rw-r--r-- | src/quick/items/qquickitemsmodule.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/items/qquickitemsmodule.cpp b/src/quick/items/qquickitemsmodule.cpp index 043baebd0a..71c23111d5 100644 --- a/src/quick/items/qquickitemsmodule.cpp +++ b/src/quick/items/qquickitemsmodule.cpp @@ -222,6 +222,8 @@ static void qt_quickitems_defineModule(const char *uri, int major, int minor) #ifndef QT_NO_ACCESSIBILITY qmlRegisterUncreatableType<QQuickAccessibleAttached>("QtQuick", 2, 0, "Accessible",QQuickAccessibleAttached::tr("Accessible is only available via attached properties")); #endif + + qmlRegisterType<QQuickGrid, 1>(uri, 2, 1, "Grid"); } void QQuickItemsModule::defineModule() |