阻抗弹窗
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: http://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the Qt Labs Calendar module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL3$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see http://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at http://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPLv3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or later as published by the Free
|
||||
** Software Foundation and appearing in the file LICENSE.GPL included in
|
||||
** the packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 2.0 requirements will be
|
||||
** met: http://www.gnu.org/licenses/gpl-2.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.12
|
||||
import Qt.labs.calendar 1.0
|
||||
|
||||
AbstractDayOfWeekRow {
|
||||
id: control
|
||||
|
||||
implicitWidth: Math.max(background ? background.implicitWidth : 0,
|
||||
contentItem.implicitWidth + leftPadding + rightPadding)
|
||||
implicitHeight: Math.max(background ? background.implicitHeight : 0,
|
||||
contentItem.implicitHeight + topPadding + bottomPadding)
|
||||
|
||||
spacing: 6
|
||||
topPadding: 6
|
||||
bottomPadding: 6
|
||||
font.bold: true
|
||||
|
||||
//! [delegate]
|
||||
delegate: Text {
|
||||
text: model.shortName
|
||||
font: control.font
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
//! [delegate]
|
||||
|
||||
//! [contentItem]
|
||||
contentItem: Row {
|
||||
spacing: control.spacing
|
||||
Repeater {
|
||||
model: control.source
|
||||
delegate: control.delegate
|
||||
}
|
||||
}
|
||||
//! [contentItem]
|
||||
}
|
||||
BIN
ZBD_IIIDL_S_Project/release/Qt/labs/calendar/DayOfWeekRow.qmlc
Normal file
BIN
ZBD_IIIDL_S_Project/release/Qt/labs/calendar/DayOfWeekRow.qmlc
Normal file
Binary file not shown.
73
ZBD_IIIDL_S_Project/release/Qt/labs/calendar/MonthGrid.qml
Normal file
73
ZBD_IIIDL_S_Project/release/Qt/labs/calendar/MonthGrid.qml
Normal file
@@ -0,0 +1,73 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: http://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the Qt Labs Calendar module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL3$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see http://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at http://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPLv3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or later as published by the Free
|
||||
** Software Foundation and appearing in the file LICENSE.GPL included in
|
||||
** the packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 2.0 requirements will be
|
||||
** met: http://www.gnu.org/licenses/gpl-2.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.12
|
||||
import Qt.labs.calendar 1.0
|
||||
|
||||
AbstractMonthGrid {
|
||||
id: control
|
||||
|
||||
implicitWidth: Math.max(background ? background.implicitWidth : 0,
|
||||
contentItem.implicitWidth + leftPadding + rightPadding)
|
||||
implicitHeight: Math.max(background ? background.implicitHeight : 0,
|
||||
contentItem.implicitHeight + topPadding + bottomPadding)
|
||||
|
||||
spacing: 6
|
||||
|
||||
//! [delegate]
|
||||
delegate: Text {
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
opacity: model.month === control.month ? 1 : 0
|
||||
text: model.day
|
||||
font: control.font
|
||||
}
|
||||
//! [delegate]
|
||||
|
||||
//! [contentItem]
|
||||
contentItem: Grid {
|
||||
rows: 6
|
||||
columns: 7
|
||||
rowSpacing: control.spacing
|
||||
columnSpacing: control.spacing
|
||||
|
||||
Repeater {
|
||||
model: control.source
|
||||
delegate: control.delegate
|
||||
}
|
||||
}
|
||||
//! [contentItem]
|
||||
}
|
||||
BIN
ZBD_IIIDL_S_Project/release/Qt/labs/calendar/MonthGrid.qmlc
Normal file
BIN
ZBD_IIIDL_S_Project/release/Qt/labs/calendar/MonthGrid.qmlc
Normal file
Binary file not shown.
@@ -0,0 +1,71 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: http://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the Qt Labs Calendar module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL3$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see http://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at http://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPLv3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or later as published by the Free
|
||||
** Software Foundation and appearing in the file LICENSE.GPL included in
|
||||
** the packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 2.0 requirements will be
|
||||
** met: http://www.gnu.org/licenses/gpl-2.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.12
|
||||
import Qt.labs.calendar 1.0
|
||||
|
||||
AbstractWeekNumberColumn {
|
||||
id: control
|
||||
|
||||
implicitWidth: Math.max(background ? background.implicitWidth : 0,
|
||||
contentItem.implicitWidth + leftPadding + rightPadding)
|
||||
implicitHeight: Math.max(background ? background.implicitHeight : 0,
|
||||
contentItem.implicitHeight + topPadding + bottomPadding)
|
||||
|
||||
spacing: 6
|
||||
leftPadding: 6
|
||||
rightPadding: 6
|
||||
font.bold: true
|
||||
|
||||
//! [delegate]
|
||||
delegate: Text {
|
||||
text: model.weekNumber
|
||||
font: control.font
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
//! [delegate]
|
||||
|
||||
//! [contentItem]
|
||||
contentItem: Column {
|
||||
spacing: control.spacing
|
||||
Repeater {
|
||||
model: control.source
|
||||
delegate: control.delegate
|
||||
}
|
||||
}
|
||||
//! [contentItem]
|
||||
}
|
||||
Binary file not shown.
161
ZBD_IIIDL_S_Project/release/Qt/labs/calendar/plugins.qmltypes
Normal file
161
ZBD_IIIDL_S_Project/release/Qt/labs/calendar/plugins.qmltypes
Normal file
@@ -0,0 +1,161 @@
|
||||
import QtQuick.tooling 1.2
|
||||
|
||||
// This file describes the plugin-supplied types contained in the library.
|
||||
// It is used for QML tooling purposes only.
|
||||
//
|
||||
// This file was auto-generated by:
|
||||
// 'qmlplugindump -nonrelocatable Qt.labs.calendar 1.0'
|
||||
|
||||
Module {
|
||||
dependencies: ["QtQuick 2.12"]
|
||||
Component {
|
||||
name: "QQuickCalendar"
|
||||
prototype: "QObject"
|
||||
exports: ["Qt.labs.calendar/Calendar 1.0"]
|
||||
isCreatable: false
|
||||
isSingleton: true
|
||||
exportMetaObjectRevisions: [0]
|
||||
Enum {
|
||||
name: "Month"
|
||||
values: {
|
||||
"January": 0,
|
||||
"February": 1,
|
||||
"March": 2,
|
||||
"April": 3,
|
||||
"May": 4,
|
||||
"June": 5,
|
||||
"July": 6,
|
||||
"August": 7,
|
||||
"September": 8,
|
||||
"October": 9,
|
||||
"November": 10,
|
||||
"December": 11
|
||||
}
|
||||
}
|
||||
}
|
||||
Component {
|
||||
name: "QQuickCalendarModel"
|
||||
prototype: "QAbstractListModel"
|
||||
exports: ["Qt.labs.calendar/CalendarModel 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
Property { name: "from"; type: "QDate" }
|
||||
Property { name: "to"; type: "QDate" }
|
||||
Property { name: "count"; type: "int"; isReadonly: true }
|
||||
Method {
|
||||
name: "monthAt"
|
||||
type: "int"
|
||||
Parameter { name: "index"; type: "int" }
|
||||
}
|
||||
Method {
|
||||
name: "yearAt"
|
||||
type: "int"
|
||||
Parameter { name: "index"; type: "int" }
|
||||
}
|
||||
Method {
|
||||
name: "indexOf"
|
||||
type: "int"
|
||||
Parameter { name: "date"; type: "QDate" }
|
||||
}
|
||||
Method {
|
||||
name: "indexOf"
|
||||
type: "int"
|
||||
Parameter { name: "year"; type: "int" }
|
||||
Parameter { name: "month"; type: "int" }
|
||||
}
|
||||
}
|
||||
Component {
|
||||
name: "QQuickControl"
|
||||
defaultProperty: "data"
|
||||
prototype: "QQuickItem"
|
||||
Property { name: "font"; type: "QFont" }
|
||||
Property { name: "availableWidth"; type: "double"; isReadonly: true }
|
||||
Property { name: "availableHeight"; type: "double"; isReadonly: true }
|
||||
Property { name: "padding"; type: "double" }
|
||||
Property { name: "topPadding"; type: "double" }
|
||||
Property { name: "leftPadding"; type: "double" }
|
||||
Property { name: "rightPadding"; type: "double" }
|
||||
Property { name: "bottomPadding"; type: "double" }
|
||||
Property { name: "spacing"; type: "double" }
|
||||
Property { name: "locale"; type: "QLocale" }
|
||||
Property { name: "mirrored"; type: "bool"; isReadonly: true }
|
||||
Property { name: "focusPolicy"; type: "Qt::FocusPolicy" }
|
||||
Property { name: "focusReason"; type: "Qt::FocusReason" }
|
||||
Property { name: "visualFocus"; type: "bool"; isReadonly: true }
|
||||
Property { name: "hovered"; type: "bool"; isReadonly: true }
|
||||
Property { name: "hoverEnabled"; type: "bool" }
|
||||
Property { name: "wheelEnabled"; type: "bool" }
|
||||
Property { name: "background"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "contentItem"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "baselineOffset"; type: "double" }
|
||||
Property { name: "palette"; revision: 3; type: "QPalette" }
|
||||
Property { name: "horizontalPadding"; revision: 5; type: "double" }
|
||||
Property { name: "verticalPadding"; revision: 5; type: "double" }
|
||||
Property { name: "implicitContentWidth"; revision: 5; type: "double"; isReadonly: true }
|
||||
Property { name: "implicitContentHeight"; revision: 5; type: "double"; isReadonly: true }
|
||||
Property { name: "implicitBackgroundWidth"; revision: 5; type: "double"; isReadonly: true }
|
||||
Property { name: "implicitBackgroundHeight"; revision: 5; type: "double"; isReadonly: true }
|
||||
Property { name: "topInset"; revision: 5; type: "double" }
|
||||
Property { name: "leftInset"; revision: 5; type: "double" }
|
||||
Property { name: "rightInset"; revision: 5; type: "double" }
|
||||
Property { name: "bottomInset"; revision: 5; type: "double" }
|
||||
Signal { name: "paletteChanged"; revision: 3 }
|
||||
Signal { name: "horizontalPaddingChanged"; revision: 5 }
|
||||
Signal { name: "verticalPaddingChanged"; revision: 5 }
|
||||
Signal { name: "implicitContentWidthChanged"; revision: 5 }
|
||||
Signal { name: "implicitContentHeightChanged"; revision: 5 }
|
||||
Signal { name: "implicitBackgroundWidthChanged"; revision: 5 }
|
||||
Signal { name: "implicitBackgroundHeightChanged"; revision: 5 }
|
||||
Signal { name: "topInsetChanged"; revision: 5 }
|
||||
Signal { name: "leftInsetChanged"; revision: 5 }
|
||||
Signal { name: "rightInsetChanged"; revision: 5 }
|
||||
Signal { name: "bottomInsetChanged"; revision: 5 }
|
||||
}
|
||||
Component {
|
||||
name: "QQuickDayOfWeekRow"
|
||||
defaultProperty: "data"
|
||||
prototype: "QQuickControl"
|
||||
exports: ["Qt.labs.calendar/AbstractDayOfWeekRow 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
Property { name: "source"; type: "QVariant" }
|
||||
Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
|
||||
}
|
||||
Component {
|
||||
name: "QQuickMonthGrid"
|
||||
defaultProperty: "data"
|
||||
prototype: "QQuickControl"
|
||||
exports: ["Qt.labs.calendar/AbstractMonthGrid 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
Property { name: "month"; type: "int" }
|
||||
Property { name: "year"; type: "int" }
|
||||
Property { name: "source"; type: "QVariant" }
|
||||
Property { name: "title"; type: "string" }
|
||||
Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
|
||||
Signal {
|
||||
name: "pressed"
|
||||
Parameter { name: "date"; type: "QDate" }
|
||||
}
|
||||
Signal {
|
||||
name: "released"
|
||||
Parameter { name: "date"; type: "QDate" }
|
||||
}
|
||||
Signal {
|
||||
name: "clicked"
|
||||
Parameter { name: "date"; type: "QDate" }
|
||||
}
|
||||
Signal {
|
||||
name: "pressAndHold"
|
||||
Parameter { name: "date"; type: "QDate" }
|
||||
}
|
||||
}
|
||||
Component {
|
||||
name: "QQuickWeekNumberColumn"
|
||||
defaultProperty: "data"
|
||||
prototype: "QQuickControl"
|
||||
exports: ["Qt.labs.calendar/AbstractWeekNumberColumn 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
Property { name: "month"; type: "int" }
|
||||
Property { name: "year"; type: "int" }
|
||||
Property { name: "source"; type: "QVariant" }
|
||||
Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
|
||||
}
|
||||
}
|
||||
6
ZBD_IIIDL_S_Project/release/Qt/labs/calendar/qmldir
Normal file
6
ZBD_IIIDL_S_Project/release/Qt/labs/calendar/qmldir
Normal file
@@ -0,0 +1,6 @@
|
||||
module Qt.labs.calendar
|
||||
plugin qtlabscalendarplugin
|
||||
classname QtLabsCalendarPlugin
|
||||
DayOfWeekRow 1.0 DayOfWeekRow.qml
|
||||
MonthGrid 1.0 MonthGrid.qml
|
||||
WeekNumberColumn 1.0 WeekNumberColumn.qml
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user