Expose the Actions object as a QML singleton

This makes it much simpler to use actions from within other objects
This commit is contained in:
Arjen Hiemstra 2016-05-11 16:35:17 +02:00
parent 66a29a2f1c
commit fbbe6cde78
2 changed files with 5 additions and 0 deletions

View file

@ -1,6 +1,8 @@
// Copyright (c) 2015 Ultimaker B.V.
// Cura is released under the terms of the AGPLv3 or higher.
pragma Singleton
import QtQuick 2.2
import QtQuick.Controls 1.1
import UM 1.1 as UM

3
resources/qml/qmldir Normal file
View file

@ -0,0 +1,3 @@
module Cura
singleton Actions 1.0 Actions.qml