Warning, /plasma/milou/lib/test/resultViewRandom.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * This file is part of the KDE Milou Project 0003 * SPDX-FileCopyrightText: 2014 Vishesh Handa <me@vhanda.in> 0004 * 0005 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 * 0007 */ 0008 0009 import QtQuick 2.1 0010 import QtQuick.Layouts 1.1 0011 0012 import org.kde.milou 0.1 as Milou 0013 0014 Milou.ResultsView { 0015 id: listView 0016 0017 width: 800 0018 height: 1100 0019 0020 Component.onCompleted: { 0021 timer.start() 0022 } 0023 0024 Timer { 0025 id: timer 0026 interval: 500 0027 repeat: true 0028 onTriggered: { 0029 var date = new Date() 0030 date.setYear(Math.random()) 0031 listView.queryString = Qt.formatDateTime(date, "dddd") 0032 console.log(listView.queryString) 0033 } 0034 } 0035 }