~renatofilho/ubuntu-calendar-app/optimize

« back to all changes in this revision

Viewing changes to EventListModel.qml

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2016-01-25 17:52:33 UTC
  • mfrom: (614.1.133 sdk-2-4)
  • Revision ID: renato.filho@canonical.com-20160125175233-j48n9vc8820qf2j9
Parent merged.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * You should have received a copy of the GNU General Public License
16
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
17
 */
18
 
import QtQuick 2.3
 
18
import QtQuick 2.4
19
19
import QtOrganizer 5.0
20
20
 
21
21
OrganizerModel {
41
41
    }
42
42
 
43
43
    function startLoadingTimer() {
44
 
        var newObject = Qt.createQmlObject("import QtQuick 2.3; Timer {interval: 1000; running: true; repeat: false;}",
 
44
        var newObject = Qt.createQmlObject("import QtQuick 2.4; Timer {interval: 1000; running: true; repeat: false;}",
45
45
            eventModel, "EventListMode.qml");
46
46
        newObject.onTriggered.connect( function(){
47
47
            var items = itemsByTimePeriod(eventModel.startPeriod, eventModel.endPeriod);
73
73
            }
74
74
        }
75
75
        return cals;
76
 
        }
 
76
    }
77
77
 
78
78
    function getWritableCollections(){
79
79
        var cals = [];