~pkunal-parmar/ubuntu-calendar-app/ICalImport

« back to all changes in this revision

Viewing changes to LimitLabelModel.qml

  • Committer: Mihir Soni
  • Date: 2014-10-22 14:03:01 UTC
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: mihirsoni.123@gmail.com-20141022140301-qwow5d82hp0evo1o
Moved Limit Labels to model

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
 
 
26
            limitLables.append({ "label": i18n.tr("Never") })
 
27
            limitLables.append({ "label": i18n.tr("After X Occurrence") })
 
28
            limitLables.append({ "label": i18n.tr("After Date") })
 
29
        }
24
30
}