~pkunal-parmar/ubuntu-calendar-app/Minor-Performance

« back to all changes in this revision

Viewing changes to LimitLabelModel.qml

  • Committer: Tarmac
  • Author(s): Mihir Soni
  • Date: 2014-10-22 18:27:38 UTC
  • mfrom: (519.1.3 limitLablesModel)
  • Revision ID: tarmac-20141022182738-g8jxgtygmunt7y6g
Moved limitLabels from object to ListModel.

Approved by Kunal Parmar, Ubuntu Phone Apps Jenkins Bot, Arto Jalkanen.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
17
 */
18
18
import QtQuick 2.3;
19
 
import Ubuntu.Components 1.1;
20
 
QtObject {
21
 
    property var limitLabel:[i18n.tr("Never"),i18n.tr("After X Occurrence"),
22
 
        i18n.tr("After Date")];
23
 
 
 
19
 
 
20
ListModel {
 
21
    id:limitLables
 
22
    Component.onCompleted: initialise()
 
23
 
 
24
    function initialise() {
 
25
        limitLables.append({ "label": i18n.tr("Never") })
 
26
        limitLables.append({ "label": i18n.tr("After X Occurrence") })
 
27
        limitLables.append({ "label": i18n.tr("After Date") })
 
28
    }
24
29
}