阻抗弹窗

This commit is contained in:
zxj
2024-11-29 17:47:45 +08:00
parent d5f31c8108
commit 4ce8544582
997 changed files with 255048 additions and 1110 deletions

View File

@@ -0,0 +1,4 @@
module Qt.WebSockets
plugin declarative_qmlwebsockets ../../QtWebSockets/
classname QtWebSocketsDeclarativeModule
typeinfo plugins.qmltypes

View File

@@ -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]
}

View 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]
}

View File

@@ -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]
}

View 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 }
}
}

View 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

View File

@@ -0,0 +1,77 @@
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.folderlistmodel 2.13'
Module {
dependencies: ["QtQuick 2.0"]
Component {
name: "QQuickFolderListModel"
prototype: "QAbstractListModel"
exports: [
"Qt.labs.folderlistmodel/FolderListModel 1.0",
"Qt.labs.folderlistmodel/FolderListModel 2.0",
"Qt.labs.folderlistmodel/FolderListModel 2.1",
"Qt.labs.folderlistmodel/FolderListModel 2.11",
"Qt.labs.folderlistmodel/FolderListModel 2.12",
"Qt.labs.folderlistmodel/FolderListModel 2.2"
]
exportMetaObjectRevisions: [0, 0, 1, 11, 12, 2]
Enum {
name: "SortField"
values: {
"Unsorted": 0,
"Name": 1,
"Time": 2,
"Size": 3,
"Type": 4
}
}
Enum {
name: "Status"
values: {
"Null": 0,
"Ready": 1,
"Loading": 2
}
}
Property { name: "folder"; type: "QUrl" }
Property { name: "rootFolder"; type: "QUrl" }
Property { name: "parentFolder"; type: "QUrl"; isReadonly: true }
Property { name: "nameFilters"; type: "QStringList" }
Property { name: "sortField"; type: "SortField" }
Property { name: "sortReversed"; type: "bool" }
Property { name: "showFiles"; revision: 1; type: "bool" }
Property { name: "showDirs"; type: "bool" }
Property { name: "showDirsFirst"; type: "bool" }
Property { name: "showDotAndDotDot"; type: "bool" }
Property { name: "showHidden"; revision: 1; type: "bool" }
Property { name: "showOnlyReadable"; type: "bool" }
Property { name: "caseSensitive"; revision: 2; type: "bool" }
Property { name: "count"; type: "int"; isReadonly: true }
Property { name: "status"; revision: 11; type: "Status"; isReadonly: true }
Property { name: "sortCaseSensitive"; revision: 12; type: "bool" }
Signal { name: "rowCountChanged" }
Signal { name: "countChanged"; revision: 1 }
Signal { name: "statusChanged"; revision: 11 }
Method {
name: "isFolder"
type: "bool"
Parameter { name: "index"; type: "int" }
}
Method {
name: "get"
type: "QVariant"
Parameter { name: "idx"; type: "int" }
Parameter { name: "property"; type: "string" }
}
Method {
name: "indexOf"
type: "int"
Parameter { name: "file"; type: "QUrl" }
}
}
}

View File

@@ -0,0 +1,4 @@
module Qt.labs.folderlistmodel
plugin qmlfolderlistmodelplugin
classname QmlFolderListModelPlugin
typeinfo plugins.qmltypes

View File

@@ -0,0 +1,241 @@
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.location 1.0'
Module {
dependencies: ["QtQuick 2.0"]
Component {
name: "LocationLabsSingleton"
prototype: "QObject"
exports: ["Qt.labs.location/QtLocationLabs 1.0"]
isCreatable: false
isSingleton: true
exportMetaObjectRevisions: [0]
Method {
name: "mapObjectsAt"
type: "QList<QObject*>"
Parameter { name: "coordinate"; type: "QGeoCoordinate" }
Parameter { name: "map"; type: "QDeclarativeGeoMap"; isPointer: true }
}
}
Component {
name: "QAbstractNavigator"
prototype: "QObject"
Signal {
name: "activeChanged"
Parameter { name: "active"; type: "bool" }
}
Signal {
name: "waypointReached"
Parameter { name: "pos"; type: "const QDeclarativeGeoWaypoint"; isPointer: true }
}
Signal { name: "destinationReached" }
Signal { name: "currentRouteChanged" }
Signal { name: "currentRouteLegChanged" }
Signal { name: "currentSegmentChanged" }
Signal { name: "nextManeuverIconChanged" }
Signal { name: "progressInformationChanged" }
Method { name: "start"; type: "bool" }
Method { name: "stop"; type: "bool" }
Method {
name: "setTrackPosition"
Parameter { name: "trackPosition"; type: "bool" }
}
}
Component {
name: "QDeclarativeNavigationBasicDirections"
prototype: "QObject"
Property { name: "nextManeuverIcon"; type: "QVariant"; isReadonly: true }
Property { name: "distanceToNextManeuver"; type: "double"; isReadonly: true }
Property { name: "remainingTravelDistance"; type: "double"; isReadonly: true }
Property { name: "remainingTravelDistanceToNextWaypoint"; type: "double"; isReadonly: true }
Property { name: "traveledDistance"; type: "double"; isReadonly: true }
Property { name: "timeToNextManeuver"; type: "int"; isReadonly: true }
Property { name: "remainingTravelTime"; type: "int"; isReadonly: true }
Property { name: "remainingTravelTimeToNextWaypoint"; type: "int"; isReadonly: true }
Property { name: "traveledTime"; type: "int"; isReadonly: true }
Property { name: "currentRoute"; type: "QDeclarativeGeoRoute"; isReadonly: true; isPointer: true }
Property {
name: "currentRouteLeg"
type: "QDeclarativeGeoRouteLeg"
isReadonly: true
isPointer: true
}
Property { name: "currentSegment"; type: "int"; isReadonly: true }
Signal { name: "progressInformationChanged" }
Signal {
name: "waypointReached"
Parameter { name: "pos"; type: "const QDeclarativeGeoWaypoint"; isPointer: true }
}
Signal { name: "destinationReached" }
}
Component {
name: "QDeclarativeNavigator"
defaultProperty: "quickChildren"
prototype: "QParameterizableObject"
exports: ["Qt.labs.location/Navigator 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "plugin"; type: "QDeclarativeGeoServiceProvider"; isPointer: true }
Property { name: "map"; type: "QDeclarativeGeoMap"; isPointer: true }
Property { name: "route"; type: "QDeclarativeGeoRoute"; isPointer: true }
Property { name: "positionSource"; type: "QDeclarativePositionSource"; isPointer: true }
Property { name: "active"; type: "bool" }
Property { name: "navigatorReady"; type: "bool"; isReadonly: true }
Property { name: "trackPositionSource"; type: "bool" }
Property {
name: "directions"
type: "QDeclarativeNavigationBasicDirections"
isReadonly: true
isPointer: true
}
Property { name: "error"; type: "NavigationError"; isReadonly: true }
Property { name: "errorString"; type: "string"; isReadonly: true }
Property { name: "engineHandle"; type: "QAbstractNavigator"; isReadonly: true; isPointer: true }
Signal {
name: "navigatorReadyChanged"
Parameter { name: "ready"; type: "bool" }
}
Signal {
name: "trackPositionSourceChanged"
Parameter { name: "trackPositionSource"; type: "bool" }
}
Signal {
name: "activeChanged"
Parameter { name: "active"; type: "bool" }
}
}
Component {
name: "QGeoMapObject"
defaultProperty: "quickChildren"
prototype: "QParameterizableObject"
Enum {
name: "Type"
values: {
"InvalidType": 0,
"ViewType": 1,
"RouteType": 2,
"RectangleType": 3,
"CircleType": 4,
"PolylineType": 5,
"PolygonType": 6,
"IconType": 7,
"UserType": 256
}
}
Property { name: "visible"; type: "bool" }
Property { name: "type"; type: "Type"; isReadonly: true }
Property { name: "geoShape"; type: "QGeoShape" }
Signal { name: "selected" }
Signal { name: "completed" }
}
Component {
name: "QMapCircleObject"
defaultProperty: "quickChildren"
prototype: "QGeoMapObject"
exports: ["Qt.labs.location/MapCircleObject 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "center"; type: "QGeoCoordinate" }
Property { name: "radius"; type: "double" }
Property { name: "color"; type: "QColor" }
Property {
name: "border"
type: "QDeclarativeMapLineProperties"
isReadonly: true
isPointer: true
}
}
Component {
name: "QMapIconObject"
defaultProperty: "quickChildren"
prototype: "QGeoMapObject"
exports: ["Qt.labs.location/MapIconObject 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "coordinate"; type: "QGeoCoordinate" }
Property { name: "content"; type: "QVariant" }
Property { name: "iconSize"; type: "QSizeF" }
Signal {
name: "contentChanged"
Parameter { name: "content"; type: "QVariant" }
}
Signal {
name: "coordinateChanged"
Parameter { name: "coordinate"; type: "QGeoCoordinate" }
}
}
Component {
name: "QMapObjectView"
defaultProperty: "quickChildren"
prototype: "QGeoMapObject"
exports: ["Qt.labs.location/MapObjectView 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "model"; type: "QVariant" }
Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
Signal {
name: "modelChanged"
Parameter { name: "model"; type: "QVariant" }
}
Signal {
name: "delegateChanged"
Parameter { name: "delegate"; type: "QQmlComponent"; isPointer: true }
}
Method {
name: "addMapObject"
Parameter { name: "object"; type: "QGeoMapObject"; isPointer: true }
}
Method {
name: "removeMapObject"
Parameter { name: "object"; type: "QGeoMapObject"; isPointer: true }
}
}
Component {
name: "QMapPolygonObject"
defaultProperty: "quickChildren"
prototype: "QGeoMapObject"
exports: ["Qt.labs.location/MapPolygonObject 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "path"; type: "QVariantList" }
Property { name: "color"; type: "QColor" }
Property {
name: "border"
type: "QDeclarativeMapLineProperties"
isReadonly: true
isPointer: true
}
}
Component {
name: "QMapPolylineObject"
defaultProperty: "quickChildren"
prototype: "QGeoMapObject"
exports: ["Qt.labs.location/MapPolylineObject 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "path"; type: "QVariantList" }
Property {
name: "line"
type: "QDeclarativeMapLineProperties"
isReadonly: true
isPointer: true
}
}
Component {
name: "QMapRouteObject"
defaultProperty: "quickChildren"
prototype: "QGeoMapObject"
exports: ["Qt.labs.location/MapRouteObject 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "route"; type: "QDeclarativeGeoRoute"; isPointer: true }
Signal {
name: "routeChanged"
Parameter { name: "route"; type: "QDeclarativeGeoRoute"; isPointer: true }
}
}
Component {
name: "QParameterizableObject"
defaultProperty: "quickChildren"
prototype: "QObject"
Property { name: "quickChildren"; type: "QObject"; isList: true; isReadonly: true }
}
}

View File

@@ -0,0 +1,4 @@
module Qt.labs.location
plugin locationlabsplugin
classname QtLocationLabsDeclarativeModule
typeinfo plugins.qmltypes

View File

@@ -0,0 +1,101 @@
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.lottieqt 1.0'
Module {
dependencies: ["QtQuick 2.0"]
Component {
name: "BMLiteral"
prototype: "QObject"
exports: ["Qt.labs.lottieqt/BMPropertyType 1.0"]
exportMetaObjectRevisions: [0]
Enum {
name: "PropertyType"
values: {
"RectPosition": 0,
"RectSize": 1,
"RectRoundness": 2
}
}
}
Component {
name: "LottieAnimation"
defaultProperty: "data"
prototype: "QQuickPaintedItem"
exports: ["Qt.labs.lottieqt/LottieAnimation 1.0"]
exportMetaObjectRevisions: [0]
Enum {
name: "Status"
values: {
"Null": 0,
"Loading": 1,
"Ready": 2,
"Error": 3
}
}
Enum {
name: "Quality"
values: {
"LowQuality": 0,
"MediumQuality": 1,
"HighQuality": 2
}
}
Enum {
name: "Direction"
values: {
"Forward": 1,
"Reverse": 2
}
}
Enum {
name: "LoopCount"
values: {
"Infinite": -1
}
}
Property { name: "source"; type: "string" }
Property { name: "frameRate"; type: "int" }
Property { name: "startFrame"; type: "int"; isReadonly: true }
Property { name: "endFrame"; type: "int"; isReadonly: true }
Property { name: "status"; type: "Status" }
Property { name: "quality"; type: "Quality" }
Property { name: "autoPlay"; type: "bool" }
Property { name: "loops"; type: "int" }
Property { name: "direction"; type: "Direction" }
Signal { name: "finished" }
Method { name: "start" }
Method { name: "play" }
Method { name: "pause" }
Method { name: "togglePause" }
Method { name: "stop" }
Method {
name: "gotoAndPlay"
Parameter { name: "frame"; type: "int" }
}
Method {
name: "gotoAndPlay"
type: "bool"
Parameter { name: "frameMarker"; type: "string" }
}
Method {
name: "gotoAndStop"
Parameter { name: "frame"; type: "int" }
}
Method {
name: "gotoAndStop"
type: "bool"
Parameter { name: "frameMarker"; type: "string" }
}
Method {
name: "getDuration"
type: "double"
Parameter { name: "inFrames"; type: "bool" }
}
Method { name: "getDuration"; type: "double" }
}
}

View File

@@ -0,0 +1,2 @@
module Qt.labs.lottieqt
plugin lottieqt

View File

@@ -0,0 +1,489 @@
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.platform 1.0'
Module {
dependencies: ["QtQuick 2.0"]
Component {
name: "QPlatformDialogHelper"
prototype: "QObject"
exports: ["Qt.labs.platform/StandardButton 1.0"]
isCreatable: false
exportMetaObjectRevisions: [0]
Enum {
name: "StandardButtons"
values: {
"NoButton": 0,
"Ok": 1024,
"Save": 2048,
"SaveAll": 4096,
"Open": 8192,
"Yes": 16384,
"YesToAll": 32768,
"No": 65536,
"NoToAll": 131072,
"Abort": 262144,
"Retry": 524288,
"Ignore": 1048576,
"Close": 2097152,
"Cancel": 4194304,
"Discard": 8388608,
"Help": 16777216,
"Apply": 33554432,
"Reset": 67108864,
"RestoreDefaults": 134217728,
"FirstButton": 1024,
"LastButton": 134217728,
"LowestBit": 10,
"HighestBit": 27
}
}
Enum {
name: "ButtonRole"
values: {
"InvalidRole": -1,
"AcceptRole": 0,
"RejectRole": 1,
"DestructiveRole": 2,
"ActionRole": 3,
"HelpRole": 4,
"YesRole": 5,
"NoRole": 6,
"ResetRole": 7,
"ApplyRole": 8,
"NRoles": 9,
"RoleMask": 268435455,
"AlternateRole": 268435456,
"Stretch": 536870912,
"Reverse": 1073741824,
"EOL": -1
}
}
Enum {
name: "ButtonLayout"
values: {
"UnknownLayout": -1,
"WinLayout": 0,
"MacLayout": 1,
"KdeLayout": 2,
"GnomeLayout": 3,
"MacModelessLayout": 4,
"AndroidLayout": 5
}
}
Signal { name: "accept" }
Signal { name: "reject" }
}
Component {
name: "QQuickPlatformColorDialog"
defaultProperty: "data"
prototype: "QQuickPlatformDialog"
exports: ["Qt.labs.platform/ColorDialog 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "color"; type: "QColor" }
Property { name: "currentColor"; type: "QColor" }
Property { name: "options"; type: "QColorDialogOptions::ColorDialogOptions" }
}
Component {
name: "QQuickPlatformDialog"
defaultProperty: "data"
prototype: "QObject"
exports: ["Qt.labs.platform/Dialog 1.0"]
isCreatable: false
exportMetaObjectRevisions: [0]
Enum {
name: "StandardCode"
values: {
"Rejected": 0,
"Accepted": 1
}
}
Property { name: "data"; type: "QObject"; isList: true; isReadonly: true }
Property { name: "parentWindow"; type: "QWindow"; isPointer: true }
Property { name: "title"; type: "string" }
Property { name: "flags"; type: "Qt::WindowFlags" }
Property { name: "modality"; type: "Qt::WindowModality" }
Property { name: "visible"; type: "bool" }
Property { name: "result"; type: "int" }
Signal { name: "accepted" }
Signal { name: "rejected" }
Method { name: "open" }
Method { name: "close" }
Method { name: "accept" }
Method { name: "reject" }
Method {
name: "done"
Parameter { name: "result"; type: "int" }
}
}
Component {
name: "QQuickPlatformFileDialog"
defaultProperty: "data"
prototype: "QQuickPlatformDialog"
exports: ["Qt.labs.platform/FileDialog 1.0"]
exportMetaObjectRevisions: [0]
Enum {
name: "FileMode"
values: {
"OpenFile": 0,
"OpenFiles": 1,
"SaveFile": 2
}
}
Property { name: "fileMode"; type: "FileMode" }
Property { name: "file"; type: "QUrl" }
Property { name: "files"; type: "QList<QUrl>" }
Property { name: "currentFile"; type: "QUrl" }
Property { name: "currentFiles"; type: "QList<QUrl>" }
Property { name: "folder"; type: "QUrl" }
Property { name: "options"; type: "QFileDialogOptions::FileDialogOptions" }
Property { name: "nameFilters"; type: "QStringList" }
Property {
name: "selectedNameFilter"
type: "QQuickPlatformFileNameFilter"
isReadonly: true
isPointer: true
}
Property { name: "defaultSuffix"; type: "string" }
Property { name: "acceptLabel"; type: "string" }
Property { name: "rejectLabel"; type: "string" }
}
Component {
name: "QQuickPlatformFileNameFilter"
prototype: "QObject"
Property { name: "index"; type: "int" }
Property { name: "name"; type: "string"; isReadonly: true }
Property { name: "extensions"; type: "QStringList"; isReadonly: true }
Signal {
name: "indexChanged"
Parameter { name: "index"; type: "int" }
}
Signal {
name: "nameChanged"
Parameter { name: "name"; type: "string" }
}
Signal {
name: "extensionsChanged"
Parameter { name: "extensions"; type: "QStringList" }
}
}
Component {
name: "QQuickPlatformFolderDialog"
defaultProperty: "data"
prototype: "QQuickPlatformDialog"
exports: ["Qt.labs.platform/FolderDialog 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "folder"; type: "QUrl" }
Property { name: "currentFolder"; type: "QUrl" }
Property { name: "options"; type: "QFileDialogOptions::FileDialogOptions" }
Property { name: "acceptLabel"; type: "string" }
Property { name: "rejectLabel"; type: "string" }
}
Component {
name: "QQuickPlatformFontDialog"
defaultProperty: "data"
prototype: "QQuickPlatformDialog"
exports: ["Qt.labs.platform/FontDialog 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "font"; type: "QFont" }
Property { name: "currentFont"; type: "QFont" }
Property { name: "options"; type: "QFontDialogOptions::FontDialogOptions" }
}
Component {
name: "QQuickPlatformIcon"
Property { name: "source"; type: "QUrl" }
Property { name: "name"; type: "string" }
Property { name: "mask"; type: "bool" }
}
Component {
name: "QQuickPlatformMenu"
defaultProperty: "data"
prototype: "QObject"
exports: ["Qt.labs.platform/Menu 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "data"; type: "QObject"; isList: true; isReadonly: true }
Property { name: "items"; type: "QQuickPlatformMenuItem"; isList: true; isReadonly: true }
Property { name: "menuBar"; type: "QQuickPlatformMenuBar"; isReadonly: true; isPointer: true }
Property { name: "parentMenu"; type: "QQuickPlatformMenu"; isReadonly: true; isPointer: true }
Property {
name: "systemTrayIcon"
type: "QQuickPlatformSystemTrayIcon"
isReadonly: true
isPointer: true
}
Property { name: "menuItem"; type: "QQuickPlatformMenuItem"; isReadonly: true; isPointer: true }
Property { name: "enabled"; type: "bool" }
Property { name: "visible"; type: "bool" }
Property { name: "minimumWidth"; type: "int" }
Property { name: "type"; type: "QPlatformMenu::MenuType" }
Property { name: "title"; type: "string" }
Property { name: "iconSource"; type: "QUrl" }
Property { name: "iconName"; type: "string" }
Property { name: "font"; type: "QFont" }
Property { name: "icon"; revision: 1; type: "QQuickPlatformIcon" }
Signal { name: "aboutToShow" }
Signal { name: "aboutToHide" }
Signal { name: "iconChanged"; revision: 1 }
Method {
name: "open"
Parameter { name: "args"; type: "QQmlV4Function"; isPointer: true }
}
Method { name: "close" }
Method {
name: "addItem"
Parameter { name: "item"; type: "QQuickPlatformMenuItem"; isPointer: true }
}
Method {
name: "insertItem"
Parameter { name: "index"; type: "int" }
Parameter { name: "item"; type: "QQuickPlatformMenuItem"; isPointer: true }
}
Method {
name: "removeItem"
Parameter { name: "item"; type: "QQuickPlatformMenuItem"; isPointer: true }
}
Method {
name: "addMenu"
Parameter { name: "menu"; type: "QQuickPlatformMenu"; isPointer: true }
}
Method {
name: "insertMenu"
Parameter { name: "index"; type: "int" }
Parameter { name: "menu"; type: "QQuickPlatformMenu"; isPointer: true }
}
Method {
name: "removeMenu"
Parameter { name: "menu"; type: "QQuickPlatformMenu"; isPointer: true }
}
Method { name: "clear" }
}
Component {
name: "QQuickPlatformMenuBar"
defaultProperty: "data"
prototype: "QObject"
exports: ["Qt.labs.platform/MenuBar 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "data"; type: "QObject"; isList: true; isReadonly: true }
Property { name: "menus"; type: "QQuickPlatformMenu"; isList: true; isReadonly: true }
Property { name: "window"; type: "QWindow"; isPointer: true }
Method {
name: "addMenu"
Parameter { name: "menu"; type: "QQuickPlatformMenu"; isPointer: true }
}
Method {
name: "insertMenu"
Parameter { name: "index"; type: "int" }
Parameter { name: "menu"; type: "QQuickPlatformMenu"; isPointer: true }
}
Method {
name: "removeMenu"
Parameter { name: "menu"; type: "QQuickPlatformMenu"; isPointer: true }
}
Method { name: "clear" }
}
Component {
name: "QQuickPlatformMenuItem"
prototype: "QObject"
exports: ["Qt.labs.platform/MenuItem 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "menu"; type: "QQuickPlatformMenu"; isReadonly: true; isPointer: true }
Property { name: "subMenu"; type: "QQuickPlatformMenu"; isReadonly: true; isPointer: true }
Property { name: "group"; type: "QQuickPlatformMenuItemGroup"; isPointer: true }
Property { name: "enabled"; type: "bool" }
Property { name: "visible"; type: "bool" }
Property { name: "separator"; type: "bool" }
Property { name: "checkable"; type: "bool" }
Property { name: "checked"; type: "bool" }
Property { name: "role"; type: "QPlatformMenuItem::MenuRole" }
Property { name: "text"; type: "string" }
Property { name: "iconSource"; type: "QUrl" }
Property { name: "iconName"; type: "string" }
Property { name: "shortcut"; type: "QVariant" }
Property { name: "font"; type: "QFont" }
Property { name: "icon"; revision: 1; type: "QQuickPlatformIcon" }
Signal { name: "triggered" }
Signal { name: "hovered" }
Signal { name: "iconChanged"; revision: 1 }
Method { name: "toggle" }
}
Component {
name: "QQuickPlatformMenuItemGroup"
prototype: "QObject"
exports: ["Qt.labs.platform/MenuItemGroup 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "enabled"; type: "bool" }
Property { name: "visible"; type: "bool" }
Property { name: "exclusive"; type: "bool" }
Property { name: "checkedItem"; type: "QQuickPlatformMenuItem"; isPointer: true }
Property { name: "items"; type: "QQuickPlatformMenuItem"; isList: true; isReadonly: true }
Signal {
name: "triggered"
Parameter { name: "item"; type: "QQuickPlatformMenuItem"; isPointer: true }
}
Signal {
name: "hovered"
Parameter { name: "item"; type: "QQuickPlatformMenuItem"; isPointer: true }
}
Method {
name: "addItem"
Parameter { name: "item"; type: "QQuickPlatformMenuItem"; isPointer: true }
}
Method {
name: "removeItem"
Parameter { name: "item"; type: "QQuickPlatformMenuItem"; isPointer: true }
}
Method { name: "clear" }
}
Component {
name: "QQuickPlatformMenuSeparator"
prototype: "QQuickPlatformMenuItem"
exports: ["Qt.labs.platform/MenuSeparator 1.0"]
exportMetaObjectRevisions: [0]
}
Component {
name: "QQuickPlatformMessageDialog"
defaultProperty: "data"
prototype: "QQuickPlatformDialog"
exports: ["Qt.labs.platform/MessageDialog 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "text"; type: "string" }
Property { name: "informativeText"; type: "string" }
Property { name: "detailedText"; type: "string" }
Property { name: "buttons"; type: "QPlatformDialogHelper::StandardButtons" }
Signal {
name: "clicked"
Parameter { name: "button"; type: "QPlatformDialogHelper::StandardButton" }
}
Signal { name: "okClicked" }
Signal { name: "saveClicked" }
Signal { name: "saveAllClicked" }
Signal { name: "openClicked" }
Signal { name: "yesClicked" }
Signal { name: "yesToAllClicked" }
Signal { name: "noClicked" }
Signal { name: "noToAllClicked" }
Signal { name: "abortClicked" }
Signal { name: "retryClicked" }
Signal { name: "ignoreClicked" }
Signal { name: "closeClicked" }
Signal { name: "cancelClicked" }
Signal { name: "discardClicked" }
Signal { name: "helpClicked" }
Signal { name: "applyClicked" }
Signal { name: "resetClicked" }
Signal { name: "restoreDefaultsClicked" }
}
Component {
name: "QQuickPlatformStandardPaths"
prototype: "QObject"
exports: ["Qt.labs.platform/StandardPaths 1.0"]
isCreatable: false
isSingleton: true
exportMetaObjectRevisions: [0]
Method {
name: "displayName"
type: "string"
Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
}
Method {
name: "findExecutable"
type: "QUrl"
Parameter { name: "executableName"; type: "string" }
Parameter { name: "paths"; type: "QStringList" }
}
Method {
name: "findExecutable"
type: "QUrl"
Parameter { name: "executableName"; type: "string" }
}
Method {
name: "locate"
type: "QUrl"
Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
Parameter { name: "fileName"; type: "string" }
Parameter { name: "options"; type: "QStandardPaths::LocateOptions" }
}
Method {
name: "locate"
type: "QUrl"
Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
Parameter { name: "fileName"; type: "string" }
}
Method {
name: "locateAll"
type: "QList<QUrl>"
Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
Parameter { name: "fileName"; type: "string" }
Parameter { name: "options"; type: "QStandardPaths::LocateOptions" }
}
Method {
name: "locateAll"
type: "QList<QUrl>"
Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
Parameter { name: "fileName"; type: "string" }
}
Method {
name: "setTestModeEnabled"
Parameter { name: "testMode"; type: "bool" }
}
Method {
name: "standardLocations"
type: "QList<QUrl>"
Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
}
Method {
name: "writableLocation"
type: "QUrl"
Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
}
}
Component {
name: "QQuickPlatformSystemTrayIcon"
prototype: "QObject"
exports: [
"Qt.labs.platform/SystemTrayIcon 1.0",
"Qt.labs.platform/SystemTrayIcon 1.1"
]
exportMetaObjectRevisions: [0, 1]
Property { name: "available"; type: "bool"; isReadonly: true }
Property { name: "supportsMessages"; type: "bool"; isReadonly: true }
Property { name: "visible"; type: "bool" }
Property { name: "iconSource"; type: "QUrl" }
Property { name: "iconName"; type: "string" }
Property { name: "tooltip"; type: "string" }
Property { name: "menu"; type: "QQuickPlatformMenu"; isPointer: true }
Property { name: "geometry"; revision: 1; type: "QRect"; isReadonly: true }
Property { name: "icon"; revision: 1; type: "QQuickPlatformIcon" }
Signal {
name: "activated"
Parameter { name: "reason"; type: "QPlatformSystemTrayIcon::ActivationReason" }
}
Signal { name: "messageClicked" }
Signal { name: "geometryChanged"; revision: 1 }
Signal { name: "iconChanged"; revision: 1 }
Method { name: "show" }
Method { name: "hide" }
Method {
name: "showMessage"
Parameter { name: "title"; type: "string" }
Parameter { name: "message"; type: "string" }
Parameter { name: "iconType"; type: "QPlatformSystemTrayIcon::MessageIcon" }
Parameter { name: "msecs"; type: "int" }
}
Method {
name: "showMessage"
Parameter { name: "title"; type: "string" }
Parameter { name: "message"; type: "string" }
Parameter { name: "iconType"; type: "QPlatformSystemTrayIcon::MessageIcon" }
}
Method {
name: "showMessage"
Parameter { name: "title"; type: "string" }
Parameter { name: "message"; type: "string" }
}
}
}

View File

@@ -0,0 +1,3 @@
module Qt.labs.platform
plugin qtlabsplatformplugin
classname QtLabsPlatformPlugin

View File

@@ -0,0 +1,41 @@
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 -dependencies dependencies.json Qt.labs.qmlmodels 1.0'
Module {
dependencies: []
Component {
name: "QQmlAbstractDelegateComponent"
prototype: "QQmlComponent"
exports: ["Qt.labs.qmlmodels/AbstractDelegateComponent 1.0"]
isCreatable: false
exportMetaObjectRevisions: [0]
Signal { name: "delegateChanged" }
}
Component {
name: "QQmlDelegateChoice"
defaultProperty: "delegate"
prototype: "QObject"
exports: ["Qt.labs.qmlmodels/DelegateChoice 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "roleValue"; type: "QVariant" }
Property { name: "row"; type: "int" }
Property { name: "index"; type: "int" }
Property { name: "column"; type: "int" }
Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
Signal { name: "changed" }
}
Component {
name: "QQmlDelegateChooser"
defaultProperty: "choices"
prototype: "QQmlAbstractDelegateComponent"
exports: ["Qt.labs.qmlmodels/DelegateChooser 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "role"; type: "string" }
Property { name: "choices"; type: "QQmlDelegateChoice"; isList: true; isReadonly: true }
}
}

View File

@@ -0,0 +1,3 @@
module Qt.labs.qmlmodels
plugin labsmodelsplugin
classname QtQmlLabsModelsPlugin

View File

@@ -0,0 +1,36 @@
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 -dependencies dependencies.json Qt.labs.settings 1.1'
Module {
dependencies: []
Component {
name: "QQmlSettings"
prototype: "QObject"
exports: ["Qt.labs.settings/Settings 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "category"; type: "string" }
Property { name: "fileName"; type: "string" }
Method {
name: "value"
type: "QVariant"
Parameter { name: "key"; type: "string" }
Parameter { name: "defaultValue"; type: "QVariant" }
}
Method {
name: "value"
type: "QVariant"
Parameter { name: "key"; type: "string" }
}
Method {
name: "setValue"
Parameter { name: "key"; type: "string" }
Parameter { name: "value"; type: "QVariant" }
}
Method { name: "sync" }
}
}

View File

@@ -0,0 +1,4 @@
module Qt.labs.settings
plugin qmlsettingsplugin
classname QmlSettingsPlugin
typeinfo plugins.qmltypes

View File

@@ -0,0 +1,11 @@
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.sharedimage 1.0'
Module {
dependencies: ["QtQuick 2.0"]
}

View File

@@ -0,0 +1,3 @@
module Qt.labs.sharedimage
plugin sharedimageplugin
classname QtQuickSharedImagePlugin

View File

@@ -0,0 +1,37 @@
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.wavefrontmesh 1.13'
Module {
dependencies: ["QtQuick 2.0"]
Component {
name: "QWavefrontMesh"
prototype: "QQuickShaderEffectMesh"
exports: ["Qt.labs.wavefrontmesh/WavefrontMesh 1.0"]
exportMetaObjectRevisions: [0]
Enum {
name: "Error"
values: {
"NoError": 0,
"InvalidSourceError": 1,
"UnsupportedFaceShapeError": 2,
"UnsupportedIndexSizeError": 3,
"FileNotFoundError": 4,
"NoAttributesError": 5,
"MissingPositionAttributeError": 6,
"MissingTextureCoordinateAttributeError": 7,
"MissingPositionAndTextureCoordinateAttributesError": 8,
"TooManyAttributesError": 9,
"InvalidPlaneDefinitionError": 10
}
}
Property { name: "source"; type: "QUrl" }
Property { name: "lastError"; type: "Error"; isReadonly: true }
Property { name: "projectionPlaneV"; type: "QVector3D" }
Property { name: "projectionPlaneW"; type: "QVector3D" }
}
}

View File

@@ -0,0 +1,4 @@
module Qt.labs.wavefrontmesh
plugin qmlwavefrontmeshplugin
classname QmlWavefrontMeshPlugin
typeinfo plugins.qmltypes

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,595 @@
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 -dependencies dependencies.json QtQml.Models 2.13'
Module {
dependencies: []
Component {
name: "QAbstractItemModel"
prototype: "QObject"
Enum {
name: "LayoutChangeHint"
values: {
"NoLayoutChangeHint": 0,
"VerticalSortHint": 1,
"HorizontalSortHint": 2
}
}
Enum {
name: "CheckIndexOption"
values: {
"NoOption": 0,
"IndexIsValid": 1,
"DoNotUseParent": 2,
"ParentIsInvalid": 4
}
}
Signal {
name: "dataChanged"
Parameter { name: "topLeft"; type: "QModelIndex" }
Parameter { name: "bottomRight"; type: "QModelIndex" }
Parameter { name: "roles"; type: "QVector<int>" }
}
Signal {
name: "dataChanged"
Parameter { name: "topLeft"; type: "QModelIndex" }
Parameter { name: "bottomRight"; type: "QModelIndex" }
}
Signal {
name: "headerDataChanged"
Parameter { name: "orientation"; type: "Qt::Orientation" }
Parameter { name: "first"; type: "int" }
Parameter { name: "last"; type: "int" }
}
Signal {
name: "layoutChanged"
Parameter { name: "parents"; type: "QList<QPersistentModelIndex>" }
Parameter { name: "hint"; type: "QAbstractItemModel::LayoutChangeHint" }
}
Signal {
name: "layoutChanged"
Parameter { name: "parents"; type: "QList<QPersistentModelIndex>" }
}
Signal { name: "layoutChanged" }
Signal {
name: "layoutAboutToBeChanged"
Parameter { name: "parents"; type: "QList<QPersistentModelIndex>" }
Parameter { name: "hint"; type: "QAbstractItemModel::LayoutChangeHint" }
}
Signal {
name: "layoutAboutToBeChanged"
Parameter { name: "parents"; type: "QList<QPersistentModelIndex>" }
}
Signal { name: "layoutAboutToBeChanged" }
Signal {
name: "rowsAboutToBeInserted"
Parameter { name: "parent"; type: "QModelIndex" }
Parameter { name: "first"; type: "int" }
Parameter { name: "last"; type: "int" }
}
Signal {
name: "rowsInserted"
Parameter { name: "parent"; type: "QModelIndex" }
Parameter { name: "first"; type: "int" }
Parameter { name: "last"; type: "int" }
}
Signal {
name: "rowsAboutToBeRemoved"
Parameter { name: "parent"; type: "QModelIndex" }
Parameter { name: "first"; type: "int" }
Parameter { name: "last"; type: "int" }
}
Signal {
name: "rowsRemoved"
Parameter { name: "parent"; type: "QModelIndex" }
Parameter { name: "first"; type: "int" }
Parameter { name: "last"; type: "int" }
}
Signal {
name: "columnsAboutToBeInserted"
Parameter { name: "parent"; type: "QModelIndex" }
Parameter { name: "first"; type: "int" }
Parameter { name: "last"; type: "int" }
}
Signal {
name: "columnsInserted"
Parameter { name: "parent"; type: "QModelIndex" }
Parameter { name: "first"; type: "int" }
Parameter { name: "last"; type: "int" }
}
Signal {
name: "columnsAboutToBeRemoved"
Parameter { name: "parent"; type: "QModelIndex" }
Parameter { name: "first"; type: "int" }
Parameter { name: "last"; type: "int" }
}
Signal {
name: "columnsRemoved"
Parameter { name: "parent"; type: "QModelIndex" }
Parameter { name: "first"; type: "int" }
Parameter { name: "last"; type: "int" }
}
Signal { name: "modelAboutToBeReset" }
Signal { name: "modelReset" }
Signal {
name: "rowsAboutToBeMoved"
Parameter { name: "sourceParent"; type: "QModelIndex" }
Parameter { name: "sourceStart"; type: "int" }
Parameter { name: "sourceEnd"; type: "int" }
Parameter { name: "destinationParent"; type: "QModelIndex" }
Parameter { name: "destinationRow"; type: "int" }
}
Signal {
name: "rowsMoved"
Parameter { name: "parent"; type: "QModelIndex" }
Parameter { name: "start"; type: "int" }
Parameter { name: "end"; type: "int" }
Parameter { name: "destination"; type: "QModelIndex" }
Parameter { name: "row"; type: "int" }
}
Signal {
name: "columnsAboutToBeMoved"
Parameter { name: "sourceParent"; type: "QModelIndex" }
Parameter { name: "sourceStart"; type: "int" }
Parameter { name: "sourceEnd"; type: "int" }
Parameter { name: "destinationParent"; type: "QModelIndex" }
Parameter { name: "destinationColumn"; type: "int" }
}
Signal {
name: "columnsMoved"
Parameter { name: "parent"; type: "QModelIndex" }
Parameter { name: "start"; type: "int" }
Parameter { name: "end"; type: "int" }
Parameter { name: "destination"; type: "QModelIndex" }
Parameter { name: "column"; type: "int" }
}
Method { name: "submit"; type: "bool" }
Method { name: "revert" }
Method {
name: "hasIndex"
type: "bool"
Parameter { name: "row"; type: "int" }
Parameter { name: "column"; type: "int" }
Parameter { name: "parent"; type: "QModelIndex" }
}
Method {
name: "hasIndex"
type: "bool"
Parameter { name: "row"; type: "int" }
Parameter { name: "column"; type: "int" }
}
Method {
name: "index"
type: "QModelIndex"
Parameter { name: "row"; type: "int" }
Parameter { name: "column"; type: "int" }
Parameter { name: "parent"; type: "QModelIndex" }
}
Method {
name: "index"
type: "QModelIndex"
Parameter { name: "row"; type: "int" }
Parameter { name: "column"; type: "int" }
}
Method {
name: "parent"
type: "QModelIndex"
Parameter { name: "child"; type: "QModelIndex" }
}
Method {
name: "sibling"
type: "QModelIndex"
Parameter { name: "row"; type: "int" }
Parameter { name: "column"; type: "int" }
Parameter { name: "idx"; type: "QModelIndex" }
}
Method {
name: "rowCount"
type: "int"
Parameter { name: "parent"; type: "QModelIndex" }
}
Method { name: "rowCount"; type: "int" }
Method {
name: "columnCount"
type: "int"
Parameter { name: "parent"; type: "QModelIndex" }
}
Method { name: "columnCount"; type: "int" }
Method {
name: "hasChildren"
type: "bool"
Parameter { name: "parent"; type: "QModelIndex" }
}
Method { name: "hasChildren"; type: "bool" }
Method {
name: "data"
type: "QVariant"
Parameter { name: "index"; type: "QModelIndex" }
Parameter { name: "role"; type: "int" }
}
Method {
name: "data"
type: "QVariant"
Parameter { name: "index"; type: "QModelIndex" }
}
Method {
name: "setData"
type: "bool"
Parameter { name: "index"; type: "QModelIndex" }
Parameter { name: "value"; type: "QVariant" }
Parameter { name: "role"; type: "int" }
}
Method {
name: "setData"
type: "bool"
Parameter { name: "index"; type: "QModelIndex" }
Parameter { name: "value"; type: "QVariant" }
}
Method {
name: "headerData"
type: "QVariant"
Parameter { name: "section"; type: "int" }
Parameter { name: "orientation"; type: "Qt::Orientation" }
Parameter { name: "role"; type: "int" }
}
Method {
name: "headerData"
type: "QVariant"
Parameter { name: "section"; type: "int" }
Parameter { name: "orientation"; type: "Qt::Orientation" }
}
Method {
name: "fetchMore"
Parameter { name: "parent"; type: "QModelIndex" }
}
Method {
name: "canFetchMore"
type: "bool"
Parameter { name: "parent"; type: "QModelIndex" }
}
Method {
name: "flags"
type: "Qt::ItemFlags"
Parameter { name: "index"; type: "QModelIndex" }
}
Method {
name: "match"
type: "QModelIndexList"
Parameter { name: "start"; type: "QModelIndex" }
Parameter { name: "role"; type: "int" }
Parameter { name: "value"; type: "QVariant" }
Parameter { name: "hits"; type: "int" }
Parameter { name: "flags"; type: "Qt::MatchFlags" }
}
Method {
name: "match"
type: "QModelIndexList"
Parameter { name: "start"; type: "QModelIndex" }
Parameter { name: "role"; type: "int" }
Parameter { name: "value"; type: "QVariant" }
Parameter { name: "hits"; type: "int" }
}
Method {
name: "match"
type: "QModelIndexList"
Parameter { name: "start"; type: "QModelIndex" }
Parameter { name: "role"; type: "int" }
Parameter { name: "value"; type: "QVariant" }
}
}
Component { name: "QAbstractListModel"; prototype: "QAbstractItemModel" }
Component {
name: "QItemSelectionModel"
prototype: "QObject"
exports: ["QtQml.Models/ItemSelectionModel 2.2"]
exportMetaObjectRevisions: [0]
Enum {
name: "SelectionFlags"
values: {
"NoUpdate": 0,
"Clear": 1,
"Select": 2,
"Deselect": 4,
"Toggle": 8,
"Current": 16,
"Rows": 32,
"Columns": 64,
"SelectCurrent": 18,
"ToggleCurrent": 24,
"ClearAndSelect": 3
}
}
Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
Property { name: "hasSelection"; type: "bool"; isReadonly: true }
Property { name: "currentIndex"; type: "QModelIndex"; isReadonly: true }
Property { name: "selection"; type: "QItemSelection"; isReadonly: true }
Property { name: "selectedIndexes"; type: "QModelIndexList"; isReadonly: true }
Signal {
name: "selectionChanged"
Parameter { name: "selected"; type: "QItemSelection" }
Parameter { name: "deselected"; type: "QItemSelection" }
}
Signal {
name: "currentChanged"
Parameter { name: "current"; type: "QModelIndex" }
Parameter { name: "previous"; type: "QModelIndex" }
}
Signal {
name: "currentRowChanged"
Parameter { name: "current"; type: "QModelIndex" }
Parameter { name: "previous"; type: "QModelIndex" }
}
Signal {
name: "currentColumnChanged"
Parameter { name: "current"; type: "QModelIndex" }
Parameter { name: "previous"; type: "QModelIndex" }
}
Signal {
name: "modelChanged"
Parameter { name: "model"; type: "QAbstractItemModel"; isPointer: true }
}
Method {
name: "setCurrentIndex"
Parameter { name: "index"; type: "QModelIndex" }
Parameter { name: "command"; type: "QItemSelectionModel::SelectionFlags" }
}
Method {
name: "select"
Parameter { name: "index"; type: "QModelIndex" }
Parameter { name: "command"; type: "QItemSelectionModel::SelectionFlags" }
}
Method {
name: "select"
Parameter { name: "selection"; type: "QItemSelection" }
Parameter { name: "command"; type: "QItemSelectionModel::SelectionFlags" }
}
Method { name: "clear" }
Method { name: "reset" }
Method { name: "clearSelection" }
Method { name: "clearCurrentIndex" }
Method {
name: "isSelected"
type: "bool"
Parameter { name: "index"; type: "QModelIndex" }
}
Method {
name: "isRowSelected"
type: "bool"
Parameter { name: "row"; type: "int" }
Parameter { name: "parent"; type: "QModelIndex" }
}
Method {
name: "isColumnSelected"
type: "bool"
Parameter { name: "column"; type: "int" }
Parameter { name: "parent"; type: "QModelIndex" }
}
Method {
name: "rowIntersectsSelection"
type: "bool"
Parameter { name: "row"; type: "int" }
Parameter { name: "parent"; type: "QModelIndex" }
}
Method {
name: "columnIntersectsSelection"
type: "bool"
Parameter { name: "column"; type: "int" }
Parameter { name: "parent"; type: "QModelIndex" }
}
Method {
name: "selectedRows"
type: "QModelIndexList"
Parameter { name: "column"; type: "int" }
}
Method { name: "selectedRows"; type: "QModelIndexList" }
Method {
name: "selectedColumns"
type: "QModelIndexList"
Parameter { name: "row"; type: "int" }
}
Method { name: "selectedColumns"; type: "QModelIndexList" }
}
Component {
name: "QQmlDelegateModel"
defaultProperty: "delegate"
prototype: "QQmlInstanceModel"
exports: ["QtQml.Models/DelegateModel 2.1"]
exportMetaObjectRevisions: [0]
attachedType: "QQmlDelegateModelAttached"
Property { name: "model"; type: "QVariant" }
Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
Property { name: "filterOnGroup"; type: "string" }
Property { name: "items"; type: "QQmlDelegateModelGroup"; isReadonly: true; isPointer: true }
Property {
name: "persistedItems"
type: "QQmlDelegateModelGroup"
isReadonly: true
isPointer: true
}
Property { name: "groups"; type: "QQmlDelegateModelGroup"; isList: true; isReadonly: true }
Property { name: "parts"; type: "QObject"; isReadonly: true; isPointer: true }
Property { name: "rootIndex"; type: "QVariant" }
Signal { name: "filterGroupChanged" }
Signal { name: "defaultGroupsChanged" }
Method {
name: "modelIndex"
type: "QVariant"
Parameter { name: "idx"; type: "int" }
}
Method { name: "parentModelIndex"; type: "QVariant" }
}
Component {
name: "QQmlDelegateModelAttached"
prototype: "QObject"
Property { name: "model"; type: "QQmlDelegateModel"; isReadonly: true; isPointer: true }
Property { name: "groups"; type: "QStringList" }
Property { name: "isUnresolved"; type: "bool"; isReadonly: true }
Signal { name: "unresolvedChanged" }
}
Component {
name: "QQmlDelegateModelGroup"
prototype: "QObject"
exports: ["QtQml.Models/DelegateModelGroup 2.1"]
exportMetaObjectRevisions: [0]
Property { name: "count"; type: "int"; isReadonly: true }
Property { name: "name"; type: "string" }
Property { name: "includeByDefault"; type: "bool" }
Signal { name: "defaultIncludeChanged" }
Signal {
name: "changed"
Parameter { name: "removed"; type: "QQmlV4Handle" }
Parameter { name: "inserted"; type: "QQmlV4Handle" }
}
Method {
name: "insert"
Parameter { type: "QQmlV4Function"; isPointer: true }
}
Method {
name: "create"
Parameter { type: "QQmlV4Function"; isPointer: true }
}
Method {
name: "resolve"
Parameter { type: "QQmlV4Function"; isPointer: true }
}
Method {
name: "remove"
Parameter { type: "QQmlV4Function"; isPointer: true }
}
Method {
name: "addGroups"
Parameter { type: "QQmlV4Function"; isPointer: true }
}
Method {
name: "removeGroups"
Parameter { type: "QQmlV4Function"; isPointer: true }
}
Method {
name: "setGroups"
Parameter { type: "QQmlV4Function"; isPointer: true }
}
Method {
name: "move"
Parameter { type: "QQmlV4Function"; isPointer: true }
}
Method {
name: "get"
type: "QQmlV4Handle"
Parameter { name: "index"; type: "int" }
}
}
Component { name: "QQmlDelegateModelParts"; prototype: "QObject" }
Component {
name: "QQmlListElement"
prototype: "QObject"
exports: ["QtQml.Models/ListElement 2.1"]
exportMetaObjectRevisions: [0]
}
Component {
name: "QQmlListModel"
prototype: "QAbstractListModel"
exports: ["QtQml.Models/ListModel 2.1"]
exportMetaObjectRevisions: [0]
Property { name: "count"; type: "int"; isReadonly: true }
Property { name: "dynamicRoles"; type: "bool" }
Method { name: "clear" }
Method {
name: "remove"
Parameter { name: "args"; type: "QQmlV4Function"; isPointer: true }
}
Method {
name: "append"
Parameter { name: "args"; type: "QQmlV4Function"; isPointer: true }
}
Method {
name: "insert"
Parameter { name: "args"; type: "QQmlV4Function"; isPointer: true }
}
Method {
name: "get"
type: "QQmlV4Handle"
Parameter { name: "index"; type: "int" }
}
Method {
name: "set"
Parameter { name: "index"; type: "int" }
Parameter { type: "QQmlV4Handle" }
}
Method {
name: "setProperty"
Parameter { name: "index"; type: "int" }
Parameter { name: "property"; type: "string" }
Parameter { name: "value"; type: "QVariant" }
}
Method {
name: "move"
Parameter { name: "from"; type: "int" }
Parameter { name: "to"; type: "int" }
Parameter { name: "count"; type: "int" }
}
Method { name: "sync" }
}
Component {
name: "QQmlObjectModel"
defaultProperty: "children"
prototype: "QQmlInstanceModel"
exports: [
"QtQml.Models/ObjectModel 2.1",
"QtQml.Models/ObjectModel 2.3"
]
exportMetaObjectRevisions: [0, 3]
attachedType: "QQmlObjectModelAttached"
Property { name: "children"; type: "QObject"; isList: true; isReadonly: true }
Method { name: "clear"; revision: 3 }
Method {
name: "get"
revision: 3
type: "QObject*"
Parameter { name: "index"; type: "int" }
}
Method {
name: "append"
revision: 3
Parameter { name: "object"; type: "QObject"; isPointer: true }
}
Method {
name: "insert"
revision: 3
Parameter { name: "index"; type: "int" }
Parameter { name: "object"; type: "QObject"; isPointer: true }
}
Method {
name: "move"
revision: 3
Parameter { name: "from"; type: "int" }
Parameter { name: "to"; type: "int" }
Parameter { name: "n"; type: "int" }
}
Method {
name: "move"
revision: 3
Parameter { name: "from"; type: "int" }
Parameter { name: "to"; type: "int" }
}
Method {
name: "remove"
revision: 3
Parameter { name: "index"; type: "int" }
Parameter { name: "n"; type: "int" }
}
Method {
name: "remove"
revision: 3
Parameter { name: "index"; type: "int" }
}
}
Component {
name: "QQmlObjectModelAttached"
prototype: "QObject"
Property { name: "index"; type: "int"; isReadonly: true }
}
}

View File

@@ -0,0 +1,4 @@
module QtQml.Models
plugin modelsplugin
classname QtQmlModelsPlugin
designersupported

View File

@@ -0,0 +1,75 @@
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 QtQml.RemoteObjects 1.0'
Module {
dependencies: ["QtQuick 2.0"]
Component {
name: "QRemoteObjectAbstractPersistedStore"
prototype: "QObject"
exports: ["QtQml.RemoteObjects/PersistedStore 1.0"]
isCreatable: false
exportMetaObjectRevisions: [0]
}
Component {
name: "QRemoteObjectNode"
prototype: "QObject"
exports: ["QtQml.RemoteObjects/Node 1.0"]
exportMetaObjectRevisions: [0]
Enum {
name: "ErrorCode"
values: {
"NoError": 0,
"RegistryNotAcquired": 1,
"RegistryAlreadyHosted": 2,
"NodeIsNoServer": 3,
"ServerAlreadyCreated": 4,
"UnintendedRegistryHosting": 5,
"OperationNotValidOnClientNode": 6,
"SourceNotRegistered": 7,
"MissingObjectName": 8,
"HostUrlInvalid": 9,
"ProtocolMismatch": 10,
"ListenFailed": 11
}
}
Property { name: "registryUrl"; type: "QUrl" }
Property {
name: "persistedStore"
type: "QRemoteObjectAbstractPersistedStore"
isPointer: true
}
Property { name: "heartbeatInterval"; type: "int" }
Signal {
name: "remoteObjectAdded"
Parameter { type: "QRemoteObjectSourceLocation" }
}
Signal {
name: "remoteObjectRemoved"
Parameter { type: "QRemoteObjectSourceLocation" }
}
Signal {
name: "error"
Parameter { name: "errorCode"; type: "QRemoteObjectNode::ErrorCode" }
}
Signal {
name: "heartbeatIntervalChanged"
Parameter { name: "heartbeatInterval"; type: "int" }
}
Method {
name: "connectToNode"
type: "bool"
Parameter { name: "address"; type: "QUrl" }
}
}
Component {
name: "QRemoteObjectSettingsStore"
prototype: "QRemoteObjectAbstractPersistedStore"
exports: ["QtQml.RemoteObjects/SettingsStore 1.0"]
exportMetaObjectRevisions: [0]
}
}

View File

@@ -0,0 +1,3 @@
module QtQml.RemoteObjects
plugin qtqmlremoteobjects
classname QtQmlRemoteObjectsPlugin

View File

@@ -0,0 +1,173 @@
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 -dependencies dependencies.json QtQml.StateMachine 1.13'
Module {
dependencies: []
Component {
name: "FinalState"
defaultProperty: "children"
prototype: "QFinalState"
exports: ["QtQml.StateMachine/FinalState 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "children"; type: "QObject"; isList: true; isReadonly: true }
}
Component {
name: "QAbstractState"
prototype: "QObject"
exports: ["QtQml.StateMachine/QAbstractState 1.0"]
isCreatable: false
exportMetaObjectRevisions: [0]
Property { name: "active"; type: "bool"; isReadonly: true }
Signal { name: "entered" }
Signal { name: "exited" }
Signal {
name: "activeChanged"
Parameter { name: "active"; type: "bool" }
}
}
Component {
name: "QAbstractTransition"
prototype: "QObject"
Enum {
name: "TransitionType"
values: {
"ExternalTransition": 0,
"InternalTransition": 1
}
}
Property { name: "sourceState"; type: "QState"; isReadonly: true; isPointer: true }
Property { name: "targetState"; type: "QAbstractState"; isPointer: true }
Property { name: "targetStates"; type: "QList<QAbstractState*>" }
Property { name: "transitionType"; revision: 1; type: "TransitionType" }
Signal { name: "triggered" }
}
Component { name: "QFinalState"; prototype: "QAbstractState" }
Component {
name: "QHistoryState"
prototype: "QAbstractState"
exports: ["QtQml.StateMachine/HistoryState 1.0"]
exportMetaObjectRevisions: [0]
Enum {
name: "HistoryType"
values: {
"ShallowHistory": 0,
"DeepHistory": 1
}
}
Property { name: "defaultState"; type: "QAbstractState"; isPointer: true }
Property { name: "defaultTransition"; type: "QAbstractTransition"; isPointer: true }
Property { name: "historyType"; type: "HistoryType" }
}
Component {
name: "QSignalTransition"
prototype: "QAbstractTransition"
exports: ["QtQml.StateMachine/QSignalTransition 1.0"]
isCreatable: false
exportMetaObjectRevisions: [0]
Property { name: "senderObject"; type: "QObject"; isPointer: true }
Property { name: "signal"; type: "QByteArray" }
}
Component {
name: "QState"
prototype: "QAbstractState"
exports: ["QtQml.StateMachine/QState 1.0"]
isCreatable: false
exportMetaObjectRevisions: [0]
Enum {
name: "ChildMode"
values: {
"ExclusiveStates": 0,
"ParallelStates": 1
}
}
Enum {
name: "RestorePolicy"
values: {
"DontRestoreProperties": 0,
"RestoreProperties": 1
}
}
Property { name: "initialState"; type: "QAbstractState"; isPointer: true }
Property { name: "errorState"; type: "QAbstractState"; isPointer: true }
Property { name: "childMode"; type: "ChildMode" }
Signal { name: "finished" }
Signal { name: "propertiesAssigned" }
}
Component {
name: "QStateMachine"
prototype: "QState"
Property { name: "errorString"; type: "string"; isReadonly: true }
Property { name: "globalRestorePolicy"; type: "QState::RestorePolicy" }
Property { name: "running"; type: "bool" }
Property { name: "animated"; type: "bool" }
Signal { name: "started" }
Signal { name: "stopped" }
Signal {
name: "runningChanged"
Parameter { name: "running"; type: "bool" }
}
Method { name: "start" }
Method { name: "stop" }
Method {
name: "setRunning"
Parameter { name: "running"; type: "bool" }
}
}
Component {
name: "QTimer"
prototype: "QObject"
Property { name: "singleShot"; type: "bool" }
Property { name: "interval"; type: "int" }
Property { name: "remainingTime"; type: "int"; isReadonly: true }
Property { name: "timerType"; type: "Qt::TimerType" }
Property { name: "active"; type: "bool"; isReadonly: true }
Signal { name: "timeout" }
Method {
name: "start"
Parameter { name: "msec"; type: "int" }
}
Method { name: "start" }
Method { name: "stop" }
}
Component {
name: "SignalTransition"
prototype: "QSignalTransition"
exports: ["QtQml.StateMachine/SignalTransition 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "signal"; type: "QJSValue" }
Property { name: "guard"; type: "QQmlScriptString" }
Signal { name: "invokeYourself" }
Signal { name: "qmlSignalChanged" }
Method { name: "invoke" }
}
Component {
name: "State"
defaultProperty: "children"
prototype: "QState"
exports: ["QtQml.StateMachine/State 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "children"; type: "QObject"; isList: true; isReadonly: true }
}
Component {
name: "StateMachine"
defaultProperty: "children"
prototype: "QStateMachine"
exports: ["QtQml.StateMachine/StateMachine 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "children"; type: "QObject"; isList: true; isReadonly: true }
Property { name: "running"; type: "bool" }
Signal { name: "qmlRunningChanged" }
}
Component {
name: "TimeoutTransition"
prototype: "QSignalTransition"
exports: ["QtQml.StateMachine/TimeoutTransition 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "timeout"; type: "int" }
}
}

View File

@@ -0,0 +1,4 @@
module QtQml.StateMachine
plugin qtqmlstatemachine
classname QtQmlStateMachinePlugin
typeinfo plugins.qmltypes

View File

@@ -0,0 +1,245 @@
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 -noforceqtquick QtQml 2.13'
Module {
dependencies: []
Component {
name: "QObject"
exports: ["QtQml/QtObject 2.0"]
exportMetaObjectRevisions: [0]
Property { name: "objectName"; type: "string" }
Signal {
name: "objectNameChanged"
Parameter { name: "objectName"; type: "string" }
}
Method { name: "toString" }
Method { name: "destroy" }
Method {
name: "destroy"
Parameter { name: "delay"; type: "int" }
}
}
Component {
name: "QQmlBind"
prototype: "QObject"
exports: ["QtQml/Binding 2.0", "QtQml/Binding 2.8"]
exportMetaObjectRevisions: [0, 8]
Property { name: "target"; type: "QObject"; isPointer: true }
Property { name: "property"; type: "string" }
Property { name: "value"; type: "QVariant" }
Property { name: "when"; type: "bool" }
Property { name: "delayed"; revision: 8; type: "bool" }
}
Component {
name: "QQmlComponent"
prototype: "QObject"
exports: ["QML/Component 1.0", "QtQml/Component 2.0"]
exportMetaObjectRevisions: [0, 0]
attachedType: "QQmlComponentAttached"
Enum {
name: "CompilationMode"
values: {
"PreferSynchronous": 0,
"Asynchronous": 1
}
}
Enum {
name: "Status"
values: {
"Null": 0,
"Ready": 1,
"Loading": 2,
"Error": 3
}
}
Property { name: "progress"; type: "double"; isReadonly: true }
Property { name: "status"; type: "Status"; isReadonly: true }
Property { name: "url"; type: "QUrl"; isReadonly: true }
Signal {
name: "statusChanged"
Parameter { type: "QQmlComponent::Status" }
}
Signal {
name: "progressChanged"
Parameter { type: "double" }
}
Method {
name: "loadUrl"
Parameter { name: "url"; type: "QUrl" }
}
Method {
name: "loadUrl"
Parameter { name: "url"; type: "QUrl" }
Parameter { name: "mode"; type: "CompilationMode" }
}
Method {
name: "setData"
Parameter { type: "QByteArray" }
Parameter { name: "baseUrl"; type: "QUrl" }
}
Method { name: "errorString"; type: "string" }
}
Component {
name: "QQmlComponentAttached"
prototype: "QObject"
Signal { name: "completed" }
Signal { name: "destruction" }
}
Component {
name: "QQmlConnections"
prototype: "QObject"
exports: ["QtQml/Connections 2.0", "QtQml/Connections 2.3"]
exportMetaObjectRevisions: [0, 1]
Property { name: "target"; type: "QObject"; isPointer: true }
Property { name: "enabled"; revision: 1; type: "bool" }
Property { name: "ignoreUnknownSignals"; type: "bool" }
Signal { name: "enabledChanged"; revision: 1 }
}
Component {
name: "QQmlInstanceModel"
prototype: "QObject"
Property { name: "count"; type: "int"; isReadonly: true }
Signal {
name: "modelUpdated"
Parameter { name: "changeSet"; type: "QQmlChangeSet" }
Parameter { name: "reset"; type: "bool" }
}
Signal {
name: "createdItem"
Parameter { name: "index"; type: "int" }
Parameter { name: "object"; type: "QObject"; isPointer: true }
}
Signal {
name: "initItem"
Parameter { name: "index"; type: "int" }
Parameter { name: "object"; type: "QObject"; isPointer: true }
}
Signal {
name: "destroyingItem"
Parameter { name: "object"; type: "QObject"; isPointer: true }
}
}
Component {
name: "QQmlInstantiator"
defaultProperty: "delegate"
prototype: "QObject"
exports: ["QtQml/Instantiator 2.1"]
exportMetaObjectRevisions: [0]
Property { name: "active"; type: "bool" }
Property { name: "asynchronous"; type: "bool" }
Property { name: "model"; type: "QVariant" }
Property { name: "count"; type: "int"; isReadonly: true }
Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
Property { name: "object"; type: "QObject"; isReadonly: true; isPointer: true }
Signal {
name: "objectAdded"
Parameter { name: "index"; type: "int" }
Parameter { name: "object"; type: "QObject"; isPointer: true }
}
Signal {
name: "objectRemoved"
Parameter { name: "index"; type: "int" }
Parameter { name: "object"; type: "QObject"; isPointer: true }
}
Method {
name: "objectAt"
type: "QObject*"
Parameter { name: "index"; type: "int" }
}
}
Component {
name: "QQmlLocale"
exports: ["QtQml/Locale 2.2"]
isCreatable: false
exportMetaObjectRevisions: [0]
Enum {
name: "MeasurementSystem"
values: {
"MetricSystem": 0,
"ImperialSystem": 1,
"ImperialUSSystem": 1,
"ImperialUKSystem": 2
}
}
Enum {
name: "FormatType"
values: {
"LongFormat": 0,
"ShortFormat": 1,
"NarrowFormat": 2
}
}
Enum {
name: "CurrencySymbolFormat"
values: {
"CurrencyIsoCode": 0,
"CurrencySymbol": 1,
"CurrencyDisplayName": 2
}
}
Enum {
name: "DayOfWeek"
values: {
"Sunday": 0,
"Monday": 1,
"Tuesday": 2,
"Wednesday": 3,
"Thursday": 4,
"Friday": 5,
"Saturday": 6
}
}
}
Component {
name: "QQmlLoggingCategory"
prototype: "QObject"
exports: ["QtQml/LoggingCategory 2.12", "QtQml/LoggingCategory 2.8"]
exportMetaObjectRevisions: [1, 0]
Enum {
name: "DefaultLogLevel"
values: {
"Debug": 0,
"Info": 4,
"Warning": 1,
"Critical": 2,
"Fatal": 3
}
}
Property { name: "name"; type: "string" }
Property { name: "defaultLogLevel"; revision: 1; type: "DefaultLogLevel" }
}
Component {
name: "QQmlTimer"
prototype: "QObject"
exports: ["QtQml/Timer 2.0"]
exportMetaObjectRevisions: [0]
Property { name: "interval"; type: "int" }
Property { name: "running"; type: "bool" }
Property { name: "repeat"; type: "bool" }
Property { name: "triggeredOnStart"; type: "bool" }
Property { name: "parent"; type: "QObject"; isReadonly: true; isPointer: true }
Signal { name: "triggered" }
Method { name: "start" }
Method { name: "stop" }
Method { name: "restart" }
}
Component {
name: "QQuickMouseEvent"
prototype: "QObject"
Property { name: "x"; type: "double"; isReadonly: true }
Property { name: "y"; type: "double"; isReadonly: true }
Property { name: "button"; type: "int"; isReadonly: true }
Property { name: "buttons"; type: "int"; isReadonly: true }
Property { name: "modifiers"; type: "int"; isReadonly: true }
Property { name: "source"; revision: 7; type: "int"; isReadonly: true }
Property { name: "wasHeld"; type: "bool"; isReadonly: true }
Property { name: "isClick"; type: "bool"; isReadonly: true }
Property { name: "accepted"; type: "bool" }
Property { name: "flags"; revision: 11; type: "int"; isReadonly: true }
}
}

View File

@@ -0,0 +1,2 @@
module QtQml
typeinfo plugins.qmltypes

View File

@@ -0,0 +1,47 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
T.AbstractButton {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
T.Action { }

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
T.ActionGroup { }

View File

@@ -0,0 +1,55 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Window 2.12
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Templates 2.12 as T
T.ApplicationWindow {
id: window
color: palette.window
overlay.modal: Rectangle {
color: Color.transparent(window.palette.shadow, 0.5)
}
overlay.modeless: Rectangle {
color: Color.transparent(window.palette.shadow, 0.12)
}
}

View File

@@ -0,0 +1,63 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Templates 2.12 as T
T.BusyIndicator {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
padding: 6
contentItem: BusyIndicatorImpl {
implicitWidth: 48
implicitHeight: 48
pen: control.palette.dark
fill: control.palette.dark
running: control.running
opacity: control.running ? 1 : 0
Behavior on opacity { OpacityAnimator { duration: 250 } }
}
}

View File

@@ -0,0 +1,80 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Templates 2.12 as T
T.Button {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
padding: 6
horizontalPadding: padding + 2
spacing: 6
icon.width: 24
icon.height: 24
icon.color: control.checked || control.highlighted ? control.palette.brightText :
control.flat && !control.down ? (control.visualFocus ? control.palette.highlight : control.palette.windowText) : control.palette.buttonText
contentItem: IconLabel {
spacing: control.spacing
mirrored: control.mirrored
display: control.display
icon: control.icon
text: control.text
font: control.font
color: control.checked || control.highlighted ? control.palette.brightText :
control.flat && !control.down ? (control.visualFocus ? control.palette.highlight : control.palette.windowText) : control.palette.buttonText
}
background: Rectangle {
implicitWidth: 100
implicitHeight: 40
visible: !control.flat || control.down || control.checked || control.highlighted
color: Color.blend(control.checked || control.highlighted ? control.palette.dark : control.palette.button,
control.palette.mid, control.down ? 0.5 : 0.0)
border.color: control.palette.highlight
border.width: control.visualFocus ? 2 : 0
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
T.ButtonGroup { }

View File

@@ -0,0 +1,93 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
T.CheckBox {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
padding: 6
spacing: 6
// keep in sync with CheckDelegate.qml (shared CheckIndicator.qml was removed for performance reasons)
indicator: Rectangle {
implicitWidth: 28
implicitHeight: 28
x: text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
y: control.topPadding + (control.availableHeight - height) / 2
color: control.down ? control.palette.light : control.palette.base
border.width: control.visualFocus ? 2 : 1
border.color: control.visualFocus ? control.palette.highlight : control.palette.mid
ColorImage {
x: (parent.width - width) / 2
y: (parent.height - height) / 2
defaultColor: "#353637"
color: control.palette.text
source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png"
visible: control.checkState === Qt.Checked
}
Rectangle {
x: (parent.width - width) / 2
y: (parent.height - height) / 2
width: 16
height: 3
color: control.palette.text
visible: control.checkState === Qt.PartiallyChecked
}
}
contentItem: CheckLabel {
leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
text: control.text
font: control.font
color: control.palette.windowText
}
}

View File

@@ -0,0 +1,110 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
T.CheckDelegate {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
padding: 12
spacing: 12
icon.width: 24
icon.height: 24
icon.color: control.palette.text
contentItem: IconLabel {
leftPadding: control.mirrored ? control.indicator.width + control.spacing : 0
rightPadding: !control.mirrored ? control.indicator.width + control.spacing : 0
spacing: control.spacing
mirrored: control.mirrored
display: control.display
alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
icon: control.icon
text: control.text
font: control.font
color: control.palette.text
}
// keep in sync with CheckBox.qml (shared CheckIndicator.qml was removed for performance reasons)
indicator: Rectangle {
implicitWidth: 28
implicitHeight: 28
x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding
y: control.topPadding + (control.availableHeight - height) / 2
color: control.down ? control.palette.light : control.palette.base
border.width: control.visualFocus ? 2 : 1
border.color: control.visualFocus ? control.palette.highlight : control.palette.mid
ColorImage {
x: (parent.width - width) / 2
y: (parent.height - height) / 2
defaultColor: "#353637"
color: control.palette.text
source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png"
visible: control.checkState === Qt.Checked
}
Rectangle {
x: (parent.width - width) / 2
y: (parent.height - height) / 2
width: 16
height: 3
color: control.palette.text
visible: control.checkState === Qt.PartiallyChecked
}
}
background: Rectangle {
implicitWidth: 100
implicitHeight: 40
visible: control.down || control.highlighted
color: control.down ? control.palette.midlight : control.palette.light
}
}

View File

@@ -0,0 +1,141 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Window 2.12
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Templates 2.12 as T
T.ComboBox {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
leftPadding: padding + (!control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
rightPadding: padding + (control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
delegate: ItemDelegate {
width: parent.width
text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData
palette.text: control.palette.text
palette.highlightedText: control.palette.highlightedText
font.weight: control.currentIndex === index ? Font.DemiBold : Font.Normal
highlighted: control.highlightedIndex === index
hoverEnabled: control.hoverEnabled
}
indicator: ColorImage {
x: control.mirrored ? control.padding : control.width - width - control.padding
y: control.topPadding + (control.availableHeight - height) / 2
color: control.palette.dark
defaultColor: "#353637"
source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/double-arrow.png"
opacity: enabled ? 1 : 0.3
}
contentItem: T.TextField {
leftPadding: !control.mirrored ? 12 : control.editable && activeFocus ? 3 : 1
rightPadding: control.mirrored ? 12 : control.editable && activeFocus ? 3 : 1
topPadding: 6 - control.padding
bottomPadding: 6 - control.padding
text: control.editable ? control.editText : control.displayText
enabled: control.editable
autoScroll: control.editable
readOnly: control.down
inputMethodHints: control.inputMethodHints
validator: control.validator
font: control.font
color: control.editable ? control.palette.text : control.palette.buttonText
selectionColor: control.palette.highlight
selectedTextColor: control.palette.highlightedText
verticalAlignment: Text.AlignVCenter
background: Rectangle {
visible: control.enabled && control.editable && !control.flat
border.width: parent && parent.activeFocus ? 2 : 1
border.color: parent && parent.activeFocus ? control.palette.highlight : control.palette.button
color: control.palette.base
}
}
background: Rectangle {
implicitWidth: 140
implicitHeight: 40
color: control.down ? control.palette.mid : control.palette.button
border.color: control.palette.highlight
border.width: !control.editable && control.visualFocus ? 2 : 0
visible: !control.flat || control.down
}
popup: T.Popup {
y: control.height
width: control.width
height: Math.min(contentItem.implicitHeight, control.Window.height - topMargin - bottomMargin)
topMargin: 6
bottomMargin: 6
contentItem: ListView {
clip: true
implicitHeight: contentHeight
model: control.delegateModel
currentIndex: control.highlightedIndex
highlightMoveDuration: 0
Rectangle {
z: 10
width: parent.width
height: parent.height
color: "transparent"
border.color: control.palette.mid
}
T.ScrollIndicator.vertical: ScrollIndicator { }
}
background: Rectangle {
color: control.palette.window
}
}
}

View File

@@ -0,0 +1,47 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
T.Container {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
contentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding)
}

View File

@@ -0,0 +1,47 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
T.Control {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
}

View File

@@ -0,0 +1,105 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Templates 2.12 as T
T.DelayButton {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
padding: 6
horizontalPadding: padding + 2
transition: Transition {
NumberAnimation {
duration: control.delay * (control.pressed ? 1.0 - control.progress : 0.3 * control.progress)
}
}
contentItem: ItemGroup {
ClippedText {
clip: control.progress > 0
clipX: -control.leftPadding + control.progress * control.width
clipWidth: (1.0 - control.progress) * control.width
visible: control.progress < 1
text: control.text
font: control.font
opacity: enabled ? 1 : 0.3
color: control.palette.buttonText
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
ClippedText {
clip: control.progress > 0
clipX: -control.leftPadding
clipWidth: control.progress * control.width
visible: control.progress > 0
text: control.text
font: control.font
opacity: enabled ? 1 : 0.3
color: control.palette.brightText
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
}
background: Rectangle {
implicitWidth: 100
implicitHeight: 40
color: Color.blend(control.palette.button, control.palette.mid, control.down ? 0.5 : 0.0)
border.color: control.palette.highlight
border.width: control.visualFocus ? 2 : 0
PaddedRectangle {
padding: control.visualFocus ? 2 : 0
width: control.progress * parent.width
height: parent.height
color: Color.blend(control.palette.dark, control.palette.mid, control.down ? 0.5 : 0.0)
}
}
}

View File

@@ -0,0 +1,79 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Templates 2.12 as T
T.Dial {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding) || 184 // ### remove 184 in Qt 6
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding) || 184 // ### remove 184 in Qt 6
background: DialImpl {
implicitWidth: 184
implicitHeight: 184
color: control.visualFocus ? control.palette.highlight : control.palette.dark
progress: control.position
opacity: control.enabled ? 1 : 0.3
}
handle: ColorImage {
x: background.x + background.width / 2 - handle.width / 2
y: background.y + background.height / 2 - handle.height / 2
width: 14
height: 10
defaultColor: "#353637"
color: control.visualFocus ? control.palette.highlight : control.palette.dark
source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/dial-indicator.png"
antialiasing: true
opacity: control.enabled ? 1 : 0.3
transform: [
Translate {
y: -Math.min(background.width, background.height) * 0.4 + handle.height / 2
},
Rotation {
angle: control.angle
origin.x: handle.width / 2
origin.y: handle.height / 2
}
]
}
}

View File

@@ -0,0 +1,86 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
T.Dialog {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
contentWidth + leftPadding + rightPadding,
implicitHeaderWidth,
implicitFooterWidth)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding
+ (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
+ (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
padding: 12
background: Rectangle {
color: control.palette.window
border.color: control.palette.dark
}
header: Label {
text: control.title
visible: control.title
elide: Label.ElideRight
font.bold: true
padding: 12
background: Rectangle {
x: 1; y: 1
width: parent.width - 2
height: parent.height - 1
color: control.palette.window
}
}
footer: DialogButtonBox {
visible: count > 0
}
T.Overlay.modal: Rectangle {
color: Color.transparent(control.palette.shadow, 0.5)
}
T.Overlay.modeless: Rectangle {
color: Color.transparent(control.palette.shadow, 0.12)
}
}

View File

@@ -0,0 +1,72 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
T.DialogButtonBox {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
(control.count === 1 ? implicitContentWidth * 2 : implicitContentWidth) + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
contentWidth: contentItem.contentWidth
spacing: 1
padding: 12
alignment: count === 1 ? Qt.AlignRight : undefined
delegate: Button {
width: control.count === 1 ? control.availableWidth / 2 : undefined
}
contentItem: ListView {
model: control.contentModel
spacing: control.spacing
orientation: ListView.Horizontal
boundsBehavior: Flickable.StopAtBounds
snapMode: ListView.SnapToItem
}
background: Rectangle {
implicitHeight: 40
x: 1; y: 1
width: parent.width - 2
height: parent.height - 2
color: control.palette.window
}
}

View File

@@ -0,0 +1,79 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Templates 2.12 as T
T.Drawer {
id: control
parent: T.Overlay.overlay
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
contentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding)
topPadding: control.edge === Qt.BottomEdge
leftPadding: control.edge === Qt.RightEdge
rightPadding: control.edge === Qt.LeftEdge
bottomPadding: control.edge === Qt.TopEdge
enter: Transition { SmoothedAnimation { velocity: 5 } }
exit: Transition { SmoothedAnimation { velocity: 5 } }
background: Rectangle {
color: control.palette.window
Rectangle {
readonly property bool horizontal: control.edge === Qt.LeftEdge || control.edge === Qt.RightEdge
width: horizontal ? 1 : parent.width
height: horizontal ? parent.height : 1
color: control.palette.dark
x: control.edge === Qt.LeftEdge ? parent.width - 1 : 0
y: control.edge === Qt.TopEdge ? parent.height - 1 : 0
}
}
T.Overlay.modal: Rectangle {
color: Color.transparent(control.palette.shadow, 0.5)
}
T.Overlay.modeless: Rectangle {
color: Color.transparent(control.palette.shadow, 0.12)
}
}

View File

@@ -0,0 +1,56 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Templates 2.12 as T
T.Frame {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
contentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding)
padding: 12
background: Rectangle {
color: "transparent"
border.color: control.palette.mid
}
}

View File

@@ -0,0 +1,55 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Window 2.2
import QtQuick.Templates 2.12 as T
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.ApplicationWindow {
id: window
color: palette.window
overlay.modal: Rectangle {
color: Fusion.topShadow
}
overlay.modeless: Rectangle {
color: Fusion.topShadow
}
}

View File

@@ -0,0 +1,71 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.BusyIndicator {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
padding: 6
contentItem: BusyIndicatorImpl {
implicitWidth: 28
implicitHeight: 28
color: control.palette.text
running: control.running
opacity: control.running ? 1 : 0
Behavior on opacity { OpacityAnimator { duration: 250 } }
RotationAnimator on rotation {
running: control.running || contentItem.visible
from: 0
to: 360
duration: 1000
loops: Animation.Infinite
}
}
}

View File

@@ -0,0 +1,76 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.Button {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
padding: 4
spacing: 6
icon.width: 16
icon.height: 16
contentItem: IconLabel {
spacing: control.spacing
mirrored: control.mirrored
display: control.display
icon: control.icon
text: control.text
font: control.font
color: control.palette.buttonText
}
background: ButtonPanel {
implicitWidth: 80
implicitHeight: 24
control: control
visible: !control.flat || control.down || control.checked || control.highlighted || control.visualFocus || control.hovered
}
}

View File

@@ -0,0 +1,77 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
Rectangle {
id: panel
property Item control
property bool highlighted: control.highlighted
visible: !control.flat || control.down || control.checked
color: Fusion.buttonColor(control.palette, panel.highlighted, control.down || control.checked, control.hovered)
gradient: control.down || control.checked ? null : buttonGradient
Gradient {
id: buttonGradient
GradientStop {
position: 0
color: Fusion.gradientStart(Fusion.buttonColor(control.palette, panel.highlighted, control.down, control.hovered))
}
GradientStop {
position: 1
color: Fusion.gradientStop(Fusion.buttonColor(control.palette, panel.highlighted, control.down, control.hovered))
}
}
radius: 2
border.color: Fusion.buttonOutline(control.palette, panel.highlighted || control.visualFocus, control.enabled)
Rectangle {
x: 1; y: 1
width: parent.width - 2
height: parent.height - 2
border.color: Fusion.innerContrastLine
color: "transparent"
radius: 2
}
}

View File

@@ -0,0 +1,72 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.CheckBox {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
padding: 6
spacing: 6
indicator: CheckIndicator {
x: text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
y: control.topPadding + (control.availableHeight - height) / 2
control: control
}
contentItem: Text {
leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
text: control.text
font: control.font
color: control.palette.windowText
elide: Text.ElideRight
verticalAlignment: Text.AlignVCenter
}
}

View File

@@ -0,0 +1,87 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.CheckDelegate {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
padding: 6
spacing: 6
icon.width: 16
icon.height: 16
contentItem: IconLabel {
leftPadding: control.mirrored ? control.indicator.width + control.spacing : 0
rightPadding: !control.mirrored ? control.indicator.width + control.spacing : 0
spacing: control.spacing
mirrored: control.mirrored
display: control.display
alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
icon: control.icon
text: control.text
font: control.font
color: control.highlighted ? Fusion.highlightedText(control.palette) : control.palette.text
}
indicator: CheckIndicator {
x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding
y: control.topPadding + (control.availableHeight - height) / 2
control: control
}
background: Rectangle {
implicitWidth: 100
implicitHeight: 20
color: control.down ? Fusion.buttonColor(control.palette, false, true, true)
: control.highlighted ? Fusion.highlight(control.palette) : control.palette.base
}
}

View File

@@ -0,0 +1,92 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
Rectangle {
id: indicator
property Item control
readonly property color pressedColor: Fusion.mergedColors(control.palette.base, control.palette.windowText, 85)
readonly property color checkMarkColor: Qt.darker(control.palette.text, 1.2)
implicitWidth: 14
implicitHeight: 14
color: control.down ? indicator.pressedColor : control.palette.base
border.color: control.visualFocus ? Fusion.highlightedOutline(control.palette)
: Qt.lighter(Fusion.outline(control.palette), 1.1)
Rectangle {
x: 1; y: 1
width: parent.width - 2
height: 1
color: Fusion.topShadow
visible: control.enabled && !control.down
}
ColorImage {
x: (parent.width - width) / 2
y: (parent.height - height) / 2
color: Color.transparent(indicator.checkMarkColor, 210 / 255)
source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Fusion/images/checkmark.png"
visible: control.checkState === Qt.Checked || (control.checked && control.checkState === undefined)
}
Rectangle {
x: 3; y: 3
width: parent.width - 6
height: parent.width - 6
visible: control.checkState === Qt.PartiallyChecked
gradient: Gradient {
GradientStop {
position: 0
color: Color.transparent(indicator.checkMarkColor, 80 / 255)
}
GradientStop {
position: 1
color: Color.transparent(indicator.checkMarkColor, 140 / 255)
}
}
border.color: Color.transparent(indicator.checkMarkColor, 180 / 255)
}
}

View File

@@ -0,0 +1,175 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Window 2.12
import QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.ComboBox {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
leftPadding: padding + (!control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
rightPadding: padding + (control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
delegate: MenuItem {
width: parent.width
text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData
font.weight: control.currentIndex === index ? Font.DemiBold : Font.Normal
highlighted: control.highlightedIndex === index
hoverEnabled: control.hoverEnabled
}
indicator: ColorImage {
x: control.mirrored ? control.padding : control.width - width - control.padding
y: control.topPadding + (control.availableHeight - height) / 2
color: control.editable ? control.palette.text : control.palette.buttonText
source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Fusion/images/arrow.png"
width: 20
fillMode: Image.Pad
}
contentItem: T.TextField {
topPadding: 4
leftPadding: 4 - control.padding
rightPadding: 4 - control.padding
bottomPadding: 4
text: control.editable ? control.editText : control.displayText
enabled: control.editable
autoScroll: control.editable
readOnly: control.down
inputMethodHints: control.inputMethodHints
validator: control.validator
font: control.font
color: control.editable ? control.palette.text : control.palette.buttonText
selectionColor: control.palette.highlight
selectedTextColor: control.palette.highlightedText
verticalAlignment: Text.AlignVCenter
background: PaddedRectangle {
clip: true
radius: 2
padding: 1
leftPadding: control.mirrored ? -2 : padding
rightPadding: !control.mirrored ? -2 : padding
color: control.palette.base
visible: control.editable && !control.flat
Rectangle {
x: parent.width - width
y: 1
width: 1
height: parent.height - 2
color: Fusion.buttonOutline(control.palette, control.activeFocus, control.enabled)
}
Rectangle {
x: 1
y: 1
width: parent.width - 3
height: 1
color: Fusion.topShadow
}
}
Rectangle {
x: 1 - control.leftPadding
y: 1
width: control.width - 2
height: control.height - 2
color: "transparent"
border.color: Color.transparent(Fusion.highlightedOutline(control.palette), 40 / 255)
visible: control.activeFocus
radius: 1.7
}
}
background: ButtonPanel {
implicitWidth: 120
implicitHeight: 24
control: control
visible: !control.flat || control.down
// ### TODO: fix control.contentItem.activeFocus
highlighted: control.visualFocus || control.contentItem.activeFocus
}
popup: T.Popup {
width: control.width
height: Math.min(contentItem.implicitHeight + 2, control.Window.height - topMargin - bottomMargin)
topMargin: 6
bottomMargin: 6
palette: control.palette
padding: 1
contentItem: ListView {
clip: true
implicitHeight: contentHeight
model: control.delegateModel
currentIndex: control.highlightedIndex
highlightRangeMode: ListView.ApplyRange
highlightMoveDuration: 0
T.ScrollBar.vertical: ScrollBar { }
}
background: Rectangle {
color: popup.palette.window
border.color: Fusion.outline(control.palette)
Rectangle {
z: -1
x: 1; y: 1
width: parent.width
height: parent.height
color: control.palette.shadow
opacity: 0.2
}
}
}
}

View File

@@ -0,0 +1,116 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.DelayButton {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
padding: 6
transition: Transition {
NumberAnimation {
duration: control.delay * (control.pressed ? 1.0 - control.progress : 0.3 * control.progress)
}
}
contentItem: ItemGroup {
ClippedText {
clip: control.progress > 0
clipX: -control.leftPadding + (control.mirrored ? 0 : control.progress * control.width)
clipWidth: control.width
visible: control.mirrored ? control.progress > 0 : control.progress < 1
text: control.text
font: control.font
color: control.mirrored ? control.palette.brightText : control.palette.buttonText
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
ClippedText {
clip: control.progress > 0
clipX: -control.leftPadding
clipWidth: (control.mirrored ? 1.0 - control.progress : control.progress) * control.width
visible: control.mirrored ? control.progress < 1 : control.progress > 0
text: control.text
font: control.font
color: control.mirrored ? control.palette.buttonText : control.palette.brightText
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
}
background: ButtonPanel {
implicitWidth: 80
implicitHeight: 24
control: control
highlighted: false
scale: control.mirrored ? -1 : 1
Rectangle {
width: control.progress * parent.width
height: parent.height
radius: 2
border.color: Qt.darker(Fusion.highlight(control.palette), 1.4)
gradient: Gradient {
GradientStop {
position: 0
color: Qt.lighter(Fusion.highlight(control.palette), 1.2)
}
GradientStop {
position: 1
color: Fusion.highlight(control.palette)
}
}
}
}
}

View File

@@ -0,0 +1,76 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.Dial {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding) || 100 // ### remove 100 in Qt 6
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding) || 100 // ### remove 100 in Qt 6
background: DialImpl {
implicitWidth: 100
implicitHeight: 100
palette: control.palette
highlight: control.visualFocus
}
handle: KnobImpl {
x: background.x + background.width / 2 - handle.width / 2
y: background.y + background.height / 2 - handle.height / 2
width: control.width / 7
height: control.height / 7
palette: control.palette
transform: [
Translate {
y: -Math.min(background.width, background.height) * 0.42 + handle.height
},
Rotation {
angle: control.angle
origin.x: handle.width / 2
origin.y: handle.height / 2
}
]
}
}

View File

@@ -0,0 +1,100 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.Dialog {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
contentWidth + leftPadding + rightPadding,
implicitHeaderWidth,
implicitFooterWidth)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding
+ (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
+ (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
padding: 6
background: Rectangle {
color: control.palette.window
border.color: control.palette.mid
radius: 2
Rectangle {
z: -1
x: 1; y: 1
width: parent.width
height: parent.height
color: control.palette.shadow
opacity: 0.2
radius: 2
}
}
header: Label {
text: control.title
visible: control.title
elide: Label.ElideRight
font.bold: true
padding: 6
background: Rectangle {
x: 1; y: 1
width: parent.width - 2
height: parent.height - 1
color: control.palette.window
radius: 2
}
}
footer: DialogButtonBox {
visible: count > 0
}
T.Overlay.modal: Rectangle {
color: Fusion.topShadow
}
T.Overlay.modeless: Rectangle {
color: Fusion.topShadow
}
}

View File

@@ -0,0 +1,74 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.DialogButtonBox {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
contentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding)
spacing: 6
padding: 6
alignment: Qt.AlignRight
delegate: Button { }
contentItem: ListView {
model: control.contentModel
spacing: control.spacing
orientation: ListView.Horizontal
boundsBehavior: Flickable.StopAtBounds
snapMode: ListView.SnapToItem
}
background: Rectangle {
implicitHeight: 32
x: 1; y: 1
width: parent.width - 2
height: parent.height - 2
color: control.palette.window
radius: 2
}
}

View File

@@ -0,0 +1,89 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.Drawer {
id: control
parent: T.Overlay.overlay
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
contentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding)
topPadding: control.edge === Qt.BottomEdge
leftPadding: control.edge === Qt.RightEdge
rightPadding: control.edge === Qt.LeftEdge
bottomPadding: control.edge === Qt.TopEdge
enter: Transition { SmoothedAnimation { velocity: 5 } }
exit: Transition { SmoothedAnimation { velocity: 5 } }
background: Rectangle {
color: control.palette.window
readonly property bool horizontal: control.edge === Qt.LeftEdge || control.edge === Qt.RightEdge
Rectangle {
width: parent.horizontal ? 1 : parent.width
height: parent.horizontal ? parent.height : 1
color: control.palette.mid
x: control.edge === Qt.LeftEdge ? parent.width - 1 : 0
y: control.edge === Qt.TopEdge ? parent.height - 1 : 0
}
Rectangle {
width: parent.horizontal ? 1 : parent.width
height: parent.horizontal ? parent.height : 1
color: control.palette.shadow
opacity: 0.2
x: control.edge === Qt.LeftEdge ? parent.width : 0
y: control.edge === Qt.TopEdge ? parent.height : 0
}
}
T.Overlay.modal: Rectangle {
color: Fusion.topShadow
}
T.Overlay.modeless: Rectangle {
color: Fusion.topShadow
}
}

View File

@@ -0,0 +1,58 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.Frame {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
contentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding)
padding: 9
background: Rectangle {
color: "transparent"
border.color: Qt.lighter(Fusion.outline(control.palette), 1.08)
}
}

View File

@@ -0,0 +1,77 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.GroupBox {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
contentWidth + leftPadding + rightPadding,
implicitLabelWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding)
spacing: 6
padding: 9
topPadding: padding + (implicitLabelWidth > 0 ? implicitLabelHeight + spacing : 0)
label: Text {
x: control.leftPadding
width: control.availableWidth
text: control.title
font: control.font
color: control.palette.windowText
elide: Text.ElideRight
verticalAlignment: Text.AlignVCenter
}
background: Rectangle {
y: control.topPadding - control.bottomPadding
width: parent.width
height: parent.height - control.topPadding + control.bottomPadding
radius: 2
color: Color.transparent("black", 3 / 255)
border.color: Qt.lighter(Fusion.outline(control.palette), 1.08)
}
}

View File

@@ -0,0 +1,77 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.ItemDelegate {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
padding: 6
spacing: 6
icon.width: 16
icon.height: 16
contentItem: IconLabel {
spacing: control.spacing
mirrored: control.mirrored
display: control.display
alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
icon: control.icon
text: control.text
font: control.font
color: control.highlighted ? Fusion.highlightedText(control.palette) : control.palette.text
}
background: Rectangle {
implicitWidth: 100
implicitHeight: 20
color: control.down ? Fusion.buttonColor(control.palette, false, true, true)
: control.highlighted ? Fusion.highlight(control.palette) : control.palette.base
}
}

View File

@@ -0,0 +1,49 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.Label {
id: control
color: control.palette.windowText
linkColor: control.palette.link
}

View File

@@ -0,0 +1,93 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
import QtQuick.Window 2.12
T.Menu {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
contentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding)
margins: 0
padding: 1
overlap: 2
delegate: MenuItem { }
contentItem: ListView {
implicitHeight: contentHeight
model: control.contentModel
interactive: Window.window ? contentHeight > Window.window.height : false
clip: true
currentIndex: control.currentIndex
ScrollIndicator.vertical: ScrollIndicator {}
}
background: Rectangle {
implicitWidth: 200
implicitHeight: 20
color: control.palette.base
border.color: Fusion.outline(control.palette)
Rectangle {
z: -1
x: 1; y: 1
width: parent.width
height: parent.height
color: control.palette.shadow
opacity: 0.2
}
}
T.Overlay.modal: Rectangle {
color: Fusion.topShadow
}
T.Overlay.modeless: Rectangle {
color: Fusion.topShadow
}
}

View File

@@ -0,0 +1,74 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.MenuBar {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
contentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding)
delegate: MenuBarItem { }
contentItem: Row {
spacing: control.spacing
Repeater {
model: control.contentModel
}
}
background: Rectangle {
implicitHeight: 20
color: control.palette.window
Rectangle {
y: parent.height - height
width: parent.width
height: 1
color: Fusion.mergedColors(Qt.darker(control.palette.window, 1.2),
Qt.lighter(Fusion.outline(control.palette), 1.4), 60)
}
}
}

View File

@@ -0,0 +1,78 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.MenuBarItem {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
padding: 6
spacing: 6
icon.width: 16
icon.height: 16
contentItem: IconLabel {
spacing: control.spacing
mirrored: control.mirrored
display: control.display
alignment: Qt.AlignLeft
icon: control.icon
text: control.text
font: control.font
color: control.down || control.highlighted ? Fusion.highlightedText(control.palette) : control.palette.text
}
background: Rectangle {
implicitWidth: 20
implicitHeight: 20
color: Fusion.highlight(control.palette)
visible: control.down || control.highlighted
}
}

View File

@@ -0,0 +1,103 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.MenuItem {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
padding: 6
spacing: 6
icon.width: 16
icon.height: 16
contentItem: IconLabel {
readonly property real arrowPadding: control.subMenu && control.arrow ? control.arrow.width + control.spacing : 0
readonly property real indicatorPadding: control.checkable && control.indicator ? control.indicator.width + control.spacing : 0
leftPadding: !control.mirrored ? indicatorPadding : arrowPadding
rightPadding: control.mirrored ? indicatorPadding : arrowPadding
spacing: control.spacing
mirrored: control.mirrored
display: control.display
alignment: Qt.AlignLeft
icon: control.icon
text: control.text
font: control.font
color: control.down || control.highlighted ? Fusion.highlightedText(control.palette) : control.palette.text
}
arrow: ColorImage {
x: control.mirrored ? control.padding : control.width - width - control.padding
y: control.topPadding + (control.availableHeight - height) / 2
width: 20
visible: control.subMenu
rotation: control.mirrored ? 90 : -90
color: control.down || control.hovered || control.highlighted ? Fusion.highlightedText(control.palette) : control.palette.text
source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Fusion/images/arrow.png"
fillMode: Image.Pad
}
indicator: CheckIndicator {
x: control.mirrored ? control.width - width - control.rightPadding : control.leftPadding
y: control.topPadding + (control.availableHeight - height) / 2
control: control
visible: control.checkable
}
background: Rectangle {
implicitWidth: 200
implicitHeight: 20
color: Fusion.highlight(control.palette)
visible: control.down || control.highlighted
}
}

View File

@@ -0,0 +1,60 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Controls 2 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 QtQuick.Templates 2.12 as T
import QtQuick.Controls 2.12
import QtQuick.Controls.impl 2.12
import QtQuick.Controls.Fusion 2.12
import QtQuick.Controls.Fusion.impl 2.12
T.MenuSeparator {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
padding: 5
verticalPadding: 1
contentItem: Rectangle {
implicitWidth: 188
implicitHeight: 1
color: Qt.lighter(Fusion.darkShade, 1.06)
}
}

Some files were not shown because too many files have changed in this diff Show More