/**************************************
*文件名:TimeEdit.qml
***************************************/
import QtQuick 2.3
import QtQuick.Window 2.2
import QtQuick.Controls 1.3
import QtQml 2.2
import QtQuick.Controls.Styles 1.4
//TimeEdit组件
Rectangle {
id:rectange
width: 100
height: 25
//z:window.z + 1
/**********************************自定义属性***********************************/
property alias text: textEdit.strTime //保存当前的时间文本
property date currentDate: new Date()
property bool isFull: true
/***********************************对象树*************************************/
//自定义的时间输入框组件
TimeInput{
id:textEdit
width: parent.width
height: parent.height
anchors.top: parent.top
anchors.left: parent.left
}
//日历控件
Calendar{
id:calendarItem
width: parent.width
height: 250
z: window.z + 1
// parent: window.contentItem
// z: focusShade.z
anchors.top: textEdit.bottom
anchors.left: textEdit.left
visible: false
onClicked: {
// calendarItem.raise()
// progressBar1.raise()
visible:false
}