examples/declarative/cppextensions/plugins/plugins.qml
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    35 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    35 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    36 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
    36 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
    37 ** $QT_END_LICENSE$
    37 ** $QT_END_LICENSE$
    38 **
    38 **
    39 ****************************************************************************/
    39 ****************************************************************************/
    40 
    40 //![0]
    41 import com.nokia.TimeExample 1.0 // import types from the plugin
    41 import com.nokia.TimeExample 1.0 // import types from the plugin
    42 
    42 
    43 Clock { // this class is defined in QML (com/nokia/TimeExample/Clock.qml)
    43 Clock { // this class is defined in QML (com/nokia/TimeExample/Clock.qml)
    44 
    44 
    45     Time { // this class is defined in C++ (plugin.cpp)
    45     Time { // this class is defined in C++ (plugin.cpp)
    47     }
    47     }
    48 
    48 
    49     hours: time.hour
    49     hours: time.hour
    50     minutes: time.minute
    50     minutes: time.minute
    51 }
    51 }
       
    52 //![0]