Warning, /libraries/kirigami-addons/tests/time_input.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2019 David Edmundson <davidedmundson@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.5 0008 import QtQuick.Layouts 1.1 0009 import QtQuick.Controls 2.1 as QQC2 0010 import org.kde.kirigami 2.5 as Kirigami 0011 import org.kde.kirigamiaddons.dateandtime 0.1 as Addon 0012 0013 Rectangle { 0014 ColumnLayout { 0015 ColumnLayout { 0016 Addon.TimeInput { 0017 id: timeInput 0018 } 0019 Text { 0020 text: 'Text: ' + timeInput.text 0021 } 0022 Text { 0023 text: 'Value: ' + timeInput.value 0024 } 0025 Text { 0026 text: 'Acceptable input: ' + timeInput.acceptableInput 0027 } 0028 } 0029 ColumnLayout { 0030 Addon.TimeInput { 0031 id: timeInput2 0032 format: 'hh.mm.ss' 0033 0034 // I'm from the future and we still don't have flying cars... FTW??? 0035 value: new Date('2042-10-10T22:24:25') 0036 0037 onValueChanged: console.log('value has changed', value) 0038 } 0039 Text { 0040 text: 'Text: ' + timeInput2.text 0041 } 0042 Text { 0043 text: 'Value: ' + timeInput2.value 0044 } 0045 Text { 0046 text: 'Acceptable input: ' + timeInput2.acceptableInput 0047 } 0048 } 0049 } 0050 }