201202-qml-abstraction: Implement a GridView element and ButtonLayoutModel
authorGabriel M. Beddingfield <gabrbedd@gmail.com>
Wed, 4 Jul 2012 22:10:26 +0000 (17:10 -0500)
committerGabriel M. Beddingfield <gabrbedd@gmail.com>
Wed, 4 Jul 2012 22:10:26 +0000 (17:10 -0500)
commit1c66f30d8a402b856980353b7a55d77042285dab
treedd4fde38fa3ff1eba836b25f0e1950150e70b50b
parent87300d4044c6c33724f9d8f1a40a2373de8661ad
201202-qml-abstraction: Implement a GridView element and ButtonLayoutModel

This is actually a squashed commit of work done between Feb 20, 2012
and Jul 4, 2012 and matches the blog post of that day.

The main changes are:

  * Added GridView QML Component that works similar to
    a QTableView.

  * Add a ButtonLayoutModel to serve as the Model for
    the GridView

  * Changed the main protocol between UI and Engine to
    use button_id's instead of the button text.

  * Plus code to glue it all together.

This commit is done as a squash because there was a lot of
intermediate code while I was learning the ropes of creating a QML
Component and make it work as a model-based view.
201202-qml-abstraction/Button.qml
201202-qml-abstraction/ButtonLayoutModel.cpp [new file with mode: 0644]
201202-qml-abstraction/ButtonLayoutModel.hpp [new file with mode: 0644]
201202-qml-abstraction/Calculator.qml
201202-qml-abstraction/Engine.cpp
201202-qml-abstraction/Engine.hpp
201202-qml-abstraction/GridView.cpp [new file with mode: 0644]
201202-qml-abstraction/GridView.hpp [new file with mode: 0644]
201202-qml-abstraction/main.cpp
201202-qml-abstraction/qml-abstraction.pro