Fixed multiple instances opening at once
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
module QML
|
||||
designersupported
|
||||
static
|
||||
system
|
||||
typeinfo plugins.qmltypes
|
||||
prefer :/qt-project.org/imports/QML/
|
||||
|
||||
@@ -0,0 +1,270 @@
|
||||
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 qmltyperegistrar.
|
||||
|
||||
Module {
|
||||
Component {
|
||||
file: "private/fileproperty_p.h"
|
||||
lineNumber: 26
|
||||
name: "FileProperty"
|
||||
accessSemantics: "value"
|
||||
}
|
||||
Component {
|
||||
file: "private/qquickfolderlistmodel_p.h"
|
||||
lineNumber: 34
|
||||
name: "QQuickFolderListModel"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QAbstractListModel"
|
||||
interfaces: ["QQmlParserStatus"]
|
||||
exports: [
|
||||
"Qt.labs.folderlistmodel/FolderListModel 1.0",
|
||||
"Qt.labs.folderlistmodel/FolderListModel 2.1",
|
||||
"Qt.labs.folderlistmodel/FolderListModel 2.2",
|
||||
"Qt.labs.folderlistmodel/FolderListModel 2.11",
|
||||
"Qt.labs.folderlistmodel/FolderListModel 2.12",
|
||||
"Qt.labs.folderlistmodel/FolderListModel 6.0",
|
||||
"Qt.labs.folderlistmodel/FolderListModel 6.4"
|
||||
]
|
||||
exportMetaObjectRevisions: [256, 513, 514, 523, 524, 1536, 1540]
|
||||
Enum {
|
||||
name: "SortField"
|
||||
lineNumber: 99
|
||||
values: ["Unsorted", "Name", "Time", "Size", "Type"]
|
||||
}
|
||||
Enum {
|
||||
name: "Status"
|
||||
lineNumber: 122
|
||||
values: ["Null", "Ready", "Loading"]
|
||||
}
|
||||
Property {
|
||||
name: "folder"
|
||||
type: "QUrl"
|
||||
read: "folder"
|
||||
write: "setFolder"
|
||||
notify: "folderChanged"
|
||||
index: 0
|
||||
lineNumber: 41
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "rootFolder"
|
||||
type: "QUrl"
|
||||
read: "rootFolder"
|
||||
write: "setRootFolder"
|
||||
notify: "rootFolderChanged"
|
||||
index: 1
|
||||
lineNumber: 42
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "parentFolder"
|
||||
type: "QUrl"
|
||||
read: "parentFolder"
|
||||
notify: "folderChanged"
|
||||
index: 2
|
||||
lineNumber: 43
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "nameFilters"
|
||||
type: "QStringList"
|
||||
read: "nameFilters"
|
||||
write: "setNameFilters"
|
||||
notify: "nameFilterChanged"
|
||||
index: 3
|
||||
lineNumber: 44
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "sortField"
|
||||
type: "SortField"
|
||||
read: "sortField"
|
||||
write: "setSortField"
|
||||
notify: "sortFieldChanged"
|
||||
index: 4
|
||||
lineNumber: 45
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "sortReversed"
|
||||
type: "bool"
|
||||
read: "sortReversed"
|
||||
write: "setSortReversed"
|
||||
notify: "sortReversedChanged"
|
||||
index: 5
|
||||
lineNumber: 46
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "showFiles"
|
||||
revision: 513
|
||||
type: "bool"
|
||||
read: "showFiles"
|
||||
write: "setShowFiles"
|
||||
notify: "showFilesChanged"
|
||||
index: 6
|
||||
lineNumber: 47
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "showDirs"
|
||||
type: "bool"
|
||||
read: "showDirs"
|
||||
write: "setShowDirs"
|
||||
notify: "showDirsChanged"
|
||||
index: 7
|
||||
lineNumber: 48
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "showDirsFirst"
|
||||
type: "bool"
|
||||
read: "showDirsFirst"
|
||||
write: "setShowDirsFirst"
|
||||
notify: "showDirsFirstChanged"
|
||||
index: 8
|
||||
lineNumber: 49
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "showDotAndDotDot"
|
||||
type: "bool"
|
||||
read: "showDotAndDotDot"
|
||||
write: "setShowDotAndDotDot"
|
||||
notify: "showDotAndDotDotChanged"
|
||||
index: 9
|
||||
lineNumber: 50
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "showHidden"
|
||||
revision: 513
|
||||
type: "bool"
|
||||
read: "showHidden"
|
||||
write: "setShowHidden"
|
||||
notify: "showHiddenChanged"
|
||||
index: 10
|
||||
lineNumber: 51
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "showOnlyReadable"
|
||||
type: "bool"
|
||||
read: "showOnlyReadable"
|
||||
write: "setShowOnlyReadable"
|
||||
notify: "showOnlyReadableChanged"
|
||||
index: 11
|
||||
lineNumber: 52
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "caseSensitive"
|
||||
revision: 514
|
||||
type: "bool"
|
||||
read: "caseSensitive"
|
||||
write: "setCaseSensitive"
|
||||
notify: "caseSensitiveChanged"
|
||||
index: 12
|
||||
lineNumber: 53
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "count"
|
||||
type: "int"
|
||||
read: "count"
|
||||
notify: "countChanged"
|
||||
index: 13
|
||||
lineNumber: 54
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "status"
|
||||
revision: 523
|
||||
type: "Status"
|
||||
read: "status"
|
||||
notify: "statusChanged"
|
||||
index: 14
|
||||
lineNumber: 55
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "sortCaseSensitive"
|
||||
revision: 524
|
||||
type: "bool"
|
||||
read: "sortCaseSensitive"
|
||||
write: "setSortCaseSensitive"
|
||||
notify: "sortCaseSensitiveChanged"
|
||||
index: 15
|
||||
lineNumber: 56
|
||||
isFinal: true
|
||||
}
|
||||
Signal { name: "folderChanged"; lineNumber: 142 }
|
||||
Signal { name: "rowCountChanged"; isMethodConstant: true; lineNumber: 143 }
|
||||
Signal { name: "rootFolderChanged"; lineNumber: 144 }
|
||||
Signal { name: "nameFilterChanged"; lineNumber: 145 }
|
||||
Signal { name: "sortFieldChanged"; lineNumber: 146 }
|
||||
Signal { name: "sortReversedChanged"; lineNumber: 147 }
|
||||
Signal { name: "showFilesChanged"; lineNumber: 148 }
|
||||
Signal { name: "showDirsChanged"; lineNumber: 149 }
|
||||
Signal { name: "showDirsFirstChanged"; lineNumber: 150 }
|
||||
Signal { name: "showDotAndDotDotChanged"; lineNumber: 151 }
|
||||
Signal { name: "showHiddenChanged"; lineNumber: 152 }
|
||||
Signal { name: "showOnlyReadableChanged"; lineNumber: 153 }
|
||||
Signal { name: "caseSensitiveChanged"; lineNumber: 154 }
|
||||
Signal { name: "sortCaseSensitiveChanged"; lineNumber: 155 }
|
||||
Signal { name: "countChanged"; revision: 513; isMethodConstant: true; lineNumber: 157 }
|
||||
Signal { name: "statusChanged"; revision: 523; lineNumber: 158 }
|
||||
Method {
|
||||
name: "_q_directoryChanged"
|
||||
lineNumber: 170
|
||||
Parameter { name: "directory"; type: "QString" }
|
||||
Parameter { name: "list"; type: "FileProperty"; isList: true }
|
||||
}
|
||||
Method {
|
||||
name: "_q_directoryUpdated"
|
||||
lineNumber: 171
|
||||
Parameter { name: "directory"; type: "QString" }
|
||||
Parameter { name: "list"; type: "FileProperty"; isList: true }
|
||||
Parameter { name: "fromIndex"; type: "int" }
|
||||
Parameter { name: "toIndex"; type: "int" }
|
||||
}
|
||||
Method {
|
||||
name: "_q_sortFinished"
|
||||
lineNumber: 172
|
||||
Parameter { name: "list"; type: "FileProperty"; isList: true }
|
||||
}
|
||||
Method {
|
||||
name: "_q_statusChanged"
|
||||
lineNumber: 173
|
||||
Parameter { name: "s"; type: "QQuickFolderListModel::Status" }
|
||||
}
|
||||
Method {
|
||||
name: "isFolder"
|
||||
type: "bool"
|
||||
isMethodConstant: true
|
||||
lineNumber: 129
|
||||
Parameter { name: "index"; type: "int" }
|
||||
}
|
||||
Method {
|
||||
name: "get"
|
||||
type: "QVariant"
|
||||
isMethodConstant: true
|
||||
lineNumber: 130
|
||||
Parameter { name: "idx"; type: "int" }
|
||||
Parameter { name: "property"; type: "QString" }
|
||||
}
|
||||
Method {
|
||||
name: "indexOf"
|
||||
type: "int"
|
||||
isMethodConstant: true
|
||||
lineNumber: 131
|
||||
Parameter { name: "file"; type: "QUrl" }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
module Qt.labs.folderlistmodel
|
||||
linktarget Qt6::qmlfolderlistmodelplugin
|
||||
optional plugin qmlfolderlistmodelplugin
|
||||
classname QmlFolderListModelPlugin
|
||||
typeinfo plugins.qmltypes
|
||||
depends QtQml.Models auto
|
||||
prefer :/qt-project.org/imports/Qt/labs/folderlistmodel/
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
module Qt.labs.platform
|
||||
linktarget Qt6::LabsPlatformplugin
|
||||
optional plugin labsplatformplugin
|
||||
classname QtLabsPlatformPlugin
|
||||
typeinfo plugins.qmltypes
|
||||
depends QtQuick
|
||||
depends QtQuick.Templates
|
||||
prefer :/qt-project.org/imports/Qt/labs/platform/
|
||||
|
||||
@@ -0,0 +1,585 @@
|
||||
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 qmltyperegistrar.
|
||||
|
||||
Module {
|
||||
Component {
|
||||
file: "qpermissions.h"
|
||||
lineNumber: 178
|
||||
name: "QBluetoothPermission"
|
||||
accessSemantics: "value"
|
||||
Enum {
|
||||
name: "CommunicationModes"
|
||||
alias: "CommunicationMode"
|
||||
isFlag: true
|
||||
type: "quint8"
|
||||
lineNumber: 182
|
||||
values: ["Access", "Advertise", "Default"]
|
||||
}
|
||||
}
|
||||
Component {
|
||||
file: "qpermissions.h"
|
||||
lineNumber: 132
|
||||
name: "QCalendarPermission"
|
||||
accessSemantics: "value"
|
||||
Enum {
|
||||
name: "AccessMode"
|
||||
type: "quint8"
|
||||
lineNumber: 136
|
||||
values: ["ReadOnly", "ReadWrite"]
|
||||
}
|
||||
}
|
||||
Component {
|
||||
file: "qpermissions.h"
|
||||
lineNumber: 155
|
||||
name: "QContactsPermission"
|
||||
accessSemantics: "value"
|
||||
Enum {
|
||||
name: "AccessMode"
|
||||
type: "quint8"
|
||||
lineNumber: 159
|
||||
values: ["ReadOnly", "ReadWrite"]
|
||||
}
|
||||
}
|
||||
Component {
|
||||
file: "qpermissions.h"
|
||||
lineNumber: 99
|
||||
name: "QLocationPermission"
|
||||
accessSemantics: "value"
|
||||
Enum {
|
||||
name: "Accuracy"
|
||||
type: "quint8"
|
||||
lineNumber: 103
|
||||
values: ["Approximate", "Precise"]
|
||||
}
|
||||
Enum {
|
||||
name: "Availability"
|
||||
type: "quint8"
|
||||
lineNumber: 112
|
||||
values: ["WhenInUse", "Always"]
|
||||
}
|
||||
}
|
||||
Component {
|
||||
file: "private/qqmlpermissions_p.h"
|
||||
lineNumber: 94
|
||||
name: "QQmlBluetoothPermission"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QObject"
|
||||
extension: "QBluetoothPermission"
|
||||
extensionIsNamespace: true
|
||||
exports: ["QtCore/BluetoothPermission 6.6"]
|
||||
exportMetaObjectRevisions: [1542]
|
||||
Property {
|
||||
name: "status"
|
||||
type: "Qt::PermissionStatus"
|
||||
read: "status"
|
||||
notify: "statusChanged"
|
||||
index: 0
|
||||
lineNumber: 96
|
||||
isReadonly: true
|
||||
}
|
||||
Property {
|
||||
name: "communicationModes"
|
||||
type: "QBluetoothPermission::CommunicationModes"
|
||||
read: "communicationModes"
|
||||
write: "setCommunicationModes"
|
||||
notify: "communicationModesChanged"
|
||||
index: 1
|
||||
lineNumber: 99
|
||||
}
|
||||
Signal { name: "statusChanged"; lineNumber: 96 }
|
||||
Signal { name: "communicationModesChanged"; lineNumber: 99 }
|
||||
Method { name: "request"; lineNumber: 96 }
|
||||
}
|
||||
Component {
|
||||
file: "private/qqmlpermissions_p.h"
|
||||
lineNumber: 78
|
||||
name: "QQmlCalendarPermission"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QObject"
|
||||
extension: "QCalendarPermission"
|
||||
extensionIsNamespace: true
|
||||
exports: ["QtCore/CalendarPermission 6.6"]
|
||||
exportMetaObjectRevisions: [1542]
|
||||
Property {
|
||||
name: "status"
|
||||
type: "Qt::PermissionStatus"
|
||||
read: "status"
|
||||
notify: "statusChanged"
|
||||
index: 0
|
||||
lineNumber: 80
|
||||
isReadonly: true
|
||||
}
|
||||
Property {
|
||||
name: "accessMode"
|
||||
type: "QCalendarPermission::AccessMode"
|
||||
read: "accessMode"
|
||||
write: "setAccessMode"
|
||||
notify: "accessModeChanged"
|
||||
index: 1
|
||||
lineNumber: 83
|
||||
}
|
||||
Signal { name: "statusChanged"; lineNumber: 80 }
|
||||
Signal { name: "accessModeChanged"; lineNumber: 83 }
|
||||
Method { name: "request"; lineNumber: 80 }
|
||||
}
|
||||
Component {
|
||||
file: "private/qqmlpermissions_p.h"
|
||||
lineNumber: 102
|
||||
name: "QQmlCameraPermission"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QObject"
|
||||
exports: ["QtCore/CameraPermission 6.6"]
|
||||
exportMetaObjectRevisions: [1542]
|
||||
Property {
|
||||
name: "status"
|
||||
type: "Qt::PermissionStatus"
|
||||
read: "status"
|
||||
notify: "statusChanged"
|
||||
index: 0
|
||||
lineNumber: 104
|
||||
isReadonly: true
|
||||
}
|
||||
Signal { name: "statusChanged"; lineNumber: 104 }
|
||||
Method { name: "request"; lineNumber: 104 }
|
||||
}
|
||||
Component {
|
||||
file: "private/qqmlpermissions_p.h"
|
||||
lineNumber: 86
|
||||
name: "QQmlContactsPermission"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QObject"
|
||||
extension: "QContactsPermission"
|
||||
extensionIsNamespace: true
|
||||
exports: ["QtCore/ContactsPermission 6.6"]
|
||||
exportMetaObjectRevisions: [1542]
|
||||
Property {
|
||||
name: "status"
|
||||
type: "Qt::PermissionStatus"
|
||||
read: "status"
|
||||
notify: "statusChanged"
|
||||
index: 0
|
||||
lineNumber: 88
|
||||
isReadonly: true
|
||||
}
|
||||
Property {
|
||||
name: "accessMode"
|
||||
type: "QContactsPermission::AccessMode"
|
||||
read: "accessMode"
|
||||
write: "setAccessMode"
|
||||
notify: "accessModeChanged"
|
||||
index: 1
|
||||
lineNumber: 91
|
||||
}
|
||||
Signal { name: "statusChanged"; lineNumber: 88 }
|
||||
Signal { name: "accessModeChanged"; lineNumber: 91 }
|
||||
Method { name: "request"; lineNumber: 88 }
|
||||
}
|
||||
Component {
|
||||
file: "private/qqmlpermissions_p.h"
|
||||
lineNumber: 108
|
||||
name: "QQmlMicrophonePermission"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QObject"
|
||||
exports: ["QtCore/MicrophonePermission 6.6"]
|
||||
exportMetaObjectRevisions: [1542]
|
||||
Property {
|
||||
name: "status"
|
||||
type: "Qt::PermissionStatus"
|
||||
read: "status"
|
||||
notify: "statusChanged"
|
||||
index: 0
|
||||
lineNumber: 110
|
||||
isReadonly: true
|
||||
}
|
||||
Signal { name: "statusChanged"; lineNumber: 110 }
|
||||
Method { name: "request"; lineNumber: 110 }
|
||||
}
|
||||
Component {
|
||||
file: "private/qqmlpermissions_p.h"
|
||||
lineNumber: 69
|
||||
name: "QQmlQLocationPermission"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QObject"
|
||||
extension: "QLocationPermission"
|
||||
extensionIsNamespace: true
|
||||
exports: ["QtCore/LocationPermission 6.6"]
|
||||
exportMetaObjectRevisions: [1542]
|
||||
Property {
|
||||
name: "status"
|
||||
type: "Qt::PermissionStatus"
|
||||
read: "status"
|
||||
notify: "statusChanged"
|
||||
index: 0
|
||||
lineNumber: 71
|
||||
isReadonly: true
|
||||
}
|
||||
Property {
|
||||
name: "availability"
|
||||
type: "QLocationPermission::Availability"
|
||||
read: "availability"
|
||||
write: "setAvailability"
|
||||
notify: "availabilityChanged"
|
||||
index: 1
|
||||
lineNumber: 74
|
||||
}
|
||||
Property {
|
||||
name: "accuracy"
|
||||
type: "QLocationPermission::Accuracy"
|
||||
read: "accuracy"
|
||||
write: "setAccuracy"
|
||||
notify: "accuracyChanged"
|
||||
index: 2
|
||||
lineNumber: 75
|
||||
}
|
||||
Signal { name: "statusChanged"; lineNumber: 71 }
|
||||
Signal { name: "availabilityChanged"; lineNumber: 74 }
|
||||
Signal { name: "accuracyChanged"; lineNumber: 75 }
|
||||
Method { name: "request"; lineNumber: 71 }
|
||||
}
|
||||
Component {
|
||||
file: "private/qqmlsettings_p.h"
|
||||
lineNumber: 30
|
||||
name: "QQmlSettings"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QObject"
|
||||
interfaces: ["QQmlParserStatus"]
|
||||
exports: ["QtCore/Settings 6.5"]
|
||||
exportMetaObjectRevisions: [1541]
|
||||
Property {
|
||||
name: "category"
|
||||
type: "QString"
|
||||
read: "category"
|
||||
write: "setCategory"
|
||||
notify: "categoryChanged"
|
||||
index: 0
|
||||
lineNumber: 38
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "location"
|
||||
type: "QUrl"
|
||||
read: "location"
|
||||
write: "setLocation"
|
||||
notify: "locationChanged"
|
||||
index: 1
|
||||
lineNumber: 39
|
||||
isFinal: true
|
||||
}
|
||||
Signal {
|
||||
name: "categoryChanged"
|
||||
lineNumber: 56
|
||||
Parameter { name: "arg"; type: "QString" }
|
||||
}
|
||||
Signal {
|
||||
name: "locationChanged"
|
||||
lineNumber: 57
|
||||
Parameter { name: "arg"; type: "QUrl" }
|
||||
}
|
||||
Method { name: "_q_propertyChanged"; lineNumber: 68 }
|
||||
Method {
|
||||
name: "value"
|
||||
type: "QVariant"
|
||||
isMethodConstant: true
|
||||
lineNumber: 51
|
||||
Parameter { name: "key"; type: "QString" }
|
||||
Parameter { name: "defaultValue"; type: "QVariant" }
|
||||
}
|
||||
Method {
|
||||
name: "value"
|
||||
type: "QVariant"
|
||||
isCloned: true
|
||||
isMethodConstant: true
|
||||
lineNumber: 51
|
||||
Parameter { name: "key"; type: "QString" }
|
||||
}
|
||||
Method {
|
||||
name: "setValue"
|
||||
lineNumber: 52
|
||||
Parameter { name: "key"; type: "QString" }
|
||||
Parameter { name: "value"; type: "QVariant" }
|
||||
}
|
||||
Method { name: "sync"; lineNumber: 53 }
|
||||
}
|
||||
Component {
|
||||
file: "private/qqmlstandardpaths_p.h"
|
||||
lineNumber: 30
|
||||
name: "QQmlStandardPaths"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QObject"
|
||||
extension: "QStandardPaths"
|
||||
extensionIsNamespace: true
|
||||
exports: ["QtCore/StandardPaths 6.2"]
|
||||
isCreatable: false
|
||||
isSingleton: true
|
||||
exportMetaObjectRevisions: [1538]
|
||||
Method {
|
||||
name: "displayName"
|
||||
type: "QString"
|
||||
isMethodConstant: true
|
||||
lineNumber: 41
|
||||
Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
|
||||
}
|
||||
Method {
|
||||
name: "findExecutable"
|
||||
type: "QUrl"
|
||||
isMethodConstant: true
|
||||
lineNumber: 42
|
||||
Parameter { name: "executableName"; type: "QString" }
|
||||
Parameter { name: "paths"; type: "QStringList" }
|
||||
}
|
||||
Method {
|
||||
name: "findExecutable"
|
||||
type: "QUrl"
|
||||
isCloned: true
|
||||
isMethodConstant: true
|
||||
lineNumber: 42
|
||||
Parameter { name: "executableName"; type: "QString" }
|
||||
}
|
||||
Method {
|
||||
name: "locate"
|
||||
type: "QUrl"
|
||||
isMethodConstant: true
|
||||
lineNumber: 43
|
||||
Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
|
||||
Parameter { name: "fileName"; type: "QString" }
|
||||
Parameter { name: "options"; type: "QStandardPaths::LocateOptions" }
|
||||
}
|
||||
Method {
|
||||
name: "locate"
|
||||
type: "QUrl"
|
||||
isCloned: true
|
||||
isMethodConstant: true
|
||||
lineNumber: 43
|
||||
Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
|
||||
Parameter { name: "fileName"; type: "QString" }
|
||||
}
|
||||
Method {
|
||||
name: "locateAll"
|
||||
type: "QUrl"
|
||||
isList: true
|
||||
isMethodConstant: true
|
||||
lineNumber: 45
|
||||
Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
|
||||
Parameter { name: "fileName"; type: "QString" }
|
||||
Parameter { name: "options"; type: "QStandardPaths::LocateOptions" }
|
||||
}
|
||||
Method {
|
||||
name: "locateAll"
|
||||
type: "QUrl"
|
||||
isList: true
|
||||
isCloned: true
|
||||
isMethodConstant: true
|
||||
lineNumber: 45
|
||||
Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
|
||||
Parameter { name: "fileName"; type: "QString" }
|
||||
}
|
||||
Method {
|
||||
name: "standardLocations"
|
||||
type: "QUrl"
|
||||
isList: true
|
||||
isMethodConstant: true
|
||||
lineNumber: 47
|
||||
Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
|
||||
}
|
||||
Method {
|
||||
name: "writableLocation"
|
||||
type: "QUrl"
|
||||
isMethodConstant: true
|
||||
lineNumber: 48
|
||||
Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
|
||||
}
|
||||
}
|
||||
Component {
|
||||
file: "private/qqmlsysteminformation_p.h"
|
||||
lineNumber: 24
|
||||
name: "QQmlSystemInformation"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QObject"
|
||||
exports: ["QtCore/SystemInformation 6.4"]
|
||||
isCreatable: false
|
||||
isSingleton: true
|
||||
exportMetaObjectRevisions: [1540]
|
||||
Enum {
|
||||
name: "Endian"
|
||||
isScoped: true
|
||||
lineNumber: 46
|
||||
values: ["Big", "Little"]
|
||||
}
|
||||
Property {
|
||||
name: "wordSize"
|
||||
type: "int"
|
||||
read: "wordSize"
|
||||
index: 0
|
||||
lineNumber: 31
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
isPropertyConstant: true
|
||||
}
|
||||
Property {
|
||||
name: "byteOrder"
|
||||
type: "QQmlSystemInformation::Endian"
|
||||
read: "byteOrder"
|
||||
index: 1
|
||||
lineNumber: 32
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
isPropertyConstant: true
|
||||
}
|
||||
Property {
|
||||
name: "buildCpuArchitecture"
|
||||
type: "QString"
|
||||
read: "buildCpuArchitecture"
|
||||
index: 2
|
||||
lineNumber: 33
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
isPropertyConstant: true
|
||||
}
|
||||
Property {
|
||||
name: "currentCpuArchitecture"
|
||||
type: "QString"
|
||||
read: "currentCpuArchitecture"
|
||||
index: 3
|
||||
lineNumber: 34
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
isPropertyConstant: true
|
||||
}
|
||||
Property {
|
||||
name: "buildAbi"
|
||||
type: "QString"
|
||||
read: "buildAbi"
|
||||
index: 4
|
||||
lineNumber: 35
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
isPropertyConstant: true
|
||||
}
|
||||
Property {
|
||||
name: "kernelType"
|
||||
type: "QString"
|
||||
read: "kernelType"
|
||||
index: 5
|
||||
lineNumber: 36
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
isPropertyConstant: true
|
||||
}
|
||||
Property {
|
||||
name: "kernelVersion"
|
||||
type: "QString"
|
||||
read: "kernelVersion"
|
||||
index: 6
|
||||
lineNumber: 37
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
isPropertyConstant: true
|
||||
}
|
||||
Property {
|
||||
name: "productType"
|
||||
type: "QString"
|
||||
read: "productType"
|
||||
index: 7
|
||||
lineNumber: 38
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
isPropertyConstant: true
|
||||
}
|
||||
Property {
|
||||
name: "productVersion"
|
||||
type: "QString"
|
||||
read: "productVersion"
|
||||
index: 8
|
||||
lineNumber: 39
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
isPropertyConstant: true
|
||||
}
|
||||
Property {
|
||||
name: "prettyProductName"
|
||||
type: "QString"
|
||||
read: "prettyProductName"
|
||||
index: 9
|
||||
lineNumber: 40
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
isPropertyConstant: true
|
||||
}
|
||||
Property {
|
||||
name: "machineHostName"
|
||||
type: "QString"
|
||||
read: "machineHostName"
|
||||
index: 10
|
||||
lineNumber: 41
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
isPropertyConstant: true
|
||||
}
|
||||
Property {
|
||||
name: "machineUniqueId"
|
||||
type: "QByteArray"
|
||||
read: "machineUniqueId"
|
||||
index: 11
|
||||
lineNumber: 42
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
isPropertyConstant: true
|
||||
}
|
||||
Property {
|
||||
name: "bootUniqueId"
|
||||
type: "QByteArray"
|
||||
read: "bootUniqueId"
|
||||
index: 12
|
||||
lineNumber: 43
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
isPropertyConstant: true
|
||||
}
|
||||
}
|
||||
Component {
|
||||
file: "qstandardpaths.h"
|
||||
lineNumber: 16
|
||||
name: "QStandardPaths"
|
||||
accessSemantics: "value"
|
||||
Enum {
|
||||
name: "StandardLocation"
|
||||
lineNumber: 21
|
||||
values: [
|
||||
"DesktopLocation",
|
||||
"DocumentsLocation",
|
||||
"FontsLocation",
|
||||
"ApplicationsLocation",
|
||||
"MusicLocation",
|
||||
"MoviesLocation",
|
||||
"PicturesLocation",
|
||||
"TempLocation",
|
||||
"HomeLocation",
|
||||
"AppLocalDataLocation",
|
||||
"CacheLocation",
|
||||
"GenericDataLocation",
|
||||
"RuntimeLocation",
|
||||
"ConfigLocation",
|
||||
"DownloadLocation",
|
||||
"GenericCacheLocation",
|
||||
"GenericConfigLocation",
|
||||
"AppDataLocation",
|
||||
"AppConfigLocation",
|
||||
"PublicShareLocation",
|
||||
"TemplatesLocation",
|
||||
"StateLocation",
|
||||
"GenericStateLocation"
|
||||
]
|
||||
}
|
||||
Enum {
|
||||
name: "LocateOptions"
|
||||
alias: "LocateOption"
|
||||
isFlag: true
|
||||
lineNumber: 51
|
||||
values: ["LocateFile", "LocateDirectory"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
module QtCore
|
||||
linktarget Qt6::qtqmlcoreplugin
|
||||
optional plugin qtqmlcoreplugin
|
||||
classname QtQmlCorePlugin
|
||||
designersupported
|
||||
typeinfo plugins.qmltypes
|
||||
depends QtQml auto
|
||||
prefer :/qt-project.org/imports/QtCore/
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
module QtQml.Models
|
||||
linktarget Qt6::modelsplugin
|
||||
optional plugin modelsplugin
|
||||
classname QtQmlModelsPlugin
|
||||
designersupported
|
||||
typeinfo plugins.qmltypes
|
||||
depends QML 1.0
|
||||
prefer :/qt-project.org/imports/QtQml/Models/
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
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 qmltyperegistrar.
|
||||
|
||||
Module {
|
||||
Component {
|
||||
file: "private/qquickworkerscript_p.h"
|
||||
lineNumber: 51
|
||||
name: "QQuickWorkerScript"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QObject"
|
||||
interfaces: ["QQmlParserStatus"]
|
||||
exports: [
|
||||
"QtQml.WorkerScript/WorkerScript 2.0",
|
||||
"QtQml.WorkerScript/WorkerScript 2.15",
|
||||
"QtQml.WorkerScript/WorkerScript 6.0"
|
||||
]
|
||||
exportMetaObjectRevisions: [512, 527, 1536]
|
||||
Property {
|
||||
name: "source"
|
||||
type: "QUrl"
|
||||
read: "source"
|
||||
write: "setSource"
|
||||
notify: "sourceChanged"
|
||||
index: 0
|
||||
lineNumber: 55
|
||||
}
|
||||
Property {
|
||||
name: "ready"
|
||||
revision: 527
|
||||
type: "bool"
|
||||
read: "ready"
|
||||
notify: "readyChanged"
|
||||
index: 1
|
||||
lineNumber: 56
|
||||
isReadonly: true
|
||||
}
|
||||
Signal { name: "sourceChanged"; lineNumber: 75 }
|
||||
Signal { name: "readyChanged"; revision: 527; lineNumber: 76 }
|
||||
Signal {
|
||||
name: "message"
|
||||
lineNumber: 77
|
||||
Parameter { name: "messageObject"; type: "QJSValue" }
|
||||
}
|
||||
Method { name: "sendMessage"; isJavaScriptFunction: true; lineNumber: 72 }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
module QtQml.WorkerScript
|
||||
linktarget Qt6::workerscriptplugin
|
||||
optional plugin workerscriptplugin
|
||||
classname QtQmlWorkerScriptPlugin
|
||||
designersupported
|
||||
typeinfo plugins.qmltypes
|
||||
depends QML 1.0
|
||||
prefer :/qt-project.org/imports/QtQml/WorkerScript/
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,258 @@
|
||||
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 qmltyperegistrar.
|
||||
|
||||
Module {
|
||||
Component {
|
||||
file: "private/qqmlbind_p.h"
|
||||
lineNumber: 27
|
||||
name: "QQmlBind"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QObject"
|
||||
interfaces: ["QQmlParserStatus", "QQmlPropertyValueSource"]
|
||||
immediateNames: [
|
||||
"objectName",
|
||||
"target",
|
||||
"property",
|
||||
"value",
|
||||
"when",
|
||||
"delayed",
|
||||
"restoreMode"
|
||||
]
|
||||
exports: [
|
||||
"QtQml/Binding 2.0",
|
||||
"QtQml/Binding 2.8",
|
||||
"QtQml/Binding 2.14",
|
||||
"QtQml/Binding 6.0",
|
||||
"QtQml/Binding 6.10"
|
||||
]
|
||||
exportMetaObjectRevisions: [512, 520, 526, 1536, 1546]
|
||||
Enum {
|
||||
name: "RestorationMode"
|
||||
lineNumber: 30
|
||||
values: [
|
||||
"RestoreNone",
|
||||
"RestoreBinding",
|
||||
"RestoreValue",
|
||||
"RestoreBindingOrValue"
|
||||
]
|
||||
}
|
||||
Property {
|
||||
name: "target"
|
||||
type: "QObject"
|
||||
isPointer: true
|
||||
read: "object"
|
||||
write: "setObject"
|
||||
notify: "objectChanged"
|
||||
index: 0
|
||||
lineNumber: 42
|
||||
}
|
||||
Property {
|
||||
name: "property"
|
||||
type: "QString"
|
||||
read: "property"
|
||||
write: "setProperty"
|
||||
notify: "propertyChanged"
|
||||
index: 1
|
||||
lineNumber: 43
|
||||
}
|
||||
Property {
|
||||
name: "value"
|
||||
type: "QVariant"
|
||||
read: "value"
|
||||
write: "setValue"
|
||||
notify: "valueChanged"
|
||||
index: 2
|
||||
lineNumber: 44
|
||||
}
|
||||
Property {
|
||||
name: "when"
|
||||
type: "bool"
|
||||
read: "when"
|
||||
write: "setWhen"
|
||||
notify: "whenChanged"
|
||||
index: 3
|
||||
lineNumber: 45
|
||||
}
|
||||
Property {
|
||||
name: "delayed"
|
||||
revision: 520
|
||||
type: "bool"
|
||||
read: "delayed"
|
||||
write: "setDelayed"
|
||||
notify: "delayedChanged"
|
||||
index: 4
|
||||
lineNumber: 46
|
||||
}
|
||||
Property {
|
||||
name: "restoreMode"
|
||||
revision: 526
|
||||
type: "RestorationMode"
|
||||
read: "restoreMode"
|
||||
write: "setRestoreMode"
|
||||
notify: "restoreModeChanged"
|
||||
index: 5
|
||||
lineNumber: 47
|
||||
}
|
||||
Signal { name: "restoreModeChanged"; lineNumber: 77 }
|
||||
Signal { name: "objectChanged"; revision: 1546; lineNumber: 78 }
|
||||
Signal { name: "propertyChanged"; revision: 1546; lineNumber: 79 }
|
||||
Signal { name: "valueChanged"; revision: 1546; lineNumber: 80 }
|
||||
Signal { name: "whenChanged"; revision: 1546; lineNumber: 81 }
|
||||
Signal { name: "delayedChanged"; revision: 1546; lineNumber: 82 }
|
||||
Method { name: "targetValueChanged"; lineNumber: 94 }
|
||||
}
|
||||
Component {
|
||||
file: "private/qqmlconnections_p.h"
|
||||
lineNumber: 32
|
||||
name: "QQmlConnections"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QObject"
|
||||
interfaces: ["QQmlParserStatus"]
|
||||
exports: [
|
||||
"QtQml/Connections 2.0",
|
||||
"QtQml/Connections 2.3",
|
||||
"QtQml/Connections 6.0"
|
||||
]
|
||||
hasCustomParser: true
|
||||
exportMetaObjectRevisions: [512, 515, 1536]
|
||||
Property {
|
||||
name: "target"
|
||||
type: "QObject"
|
||||
isPointer: true
|
||||
read: "target"
|
||||
write: "setTarget"
|
||||
notify: "targetChanged"
|
||||
index: 0
|
||||
lineNumber: 38
|
||||
}
|
||||
Property {
|
||||
name: "enabled"
|
||||
revision: 515
|
||||
type: "bool"
|
||||
read: "isEnabled"
|
||||
write: "setEnabled"
|
||||
notify: "enabledChanged"
|
||||
index: 1
|
||||
lineNumber: 39
|
||||
}
|
||||
Property {
|
||||
name: "ignoreUnknownSignals"
|
||||
type: "bool"
|
||||
read: "ignoreUnknownSignals"
|
||||
write: "setIgnoreUnknownSignals"
|
||||
index: 2
|
||||
lineNumber: 40
|
||||
}
|
||||
Signal { name: "targetChanged"; lineNumber: 63 }
|
||||
Signal { name: "enabledChanged"; revision: 515; lineNumber: 64 }
|
||||
}
|
||||
Component {
|
||||
file: "private/qqmllocaleenums_p.h"
|
||||
lineNumber: 38
|
||||
name: "QQmlLocaleEnums"
|
||||
accessSemantics: "none"
|
||||
prototype: "QQmlLocale"
|
||||
exports: ["QtQml/Locale 2.2", "QtQml/Locale 6.0"]
|
||||
isCreatable: false
|
||||
exportMetaObjectRevisions: [514, 1536]
|
||||
}
|
||||
Component {
|
||||
file: "private/qqmlloggingcategory_p.h"
|
||||
lineNumber: 33
|
||||
name: "QQmlLoggingCategory"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QQmlLoggingCategoryBase"
|
||||
interfaces: ["QQmlParserStatus"]
|
||||
exports: [
|
||||
"QtQml/LoggingCategory 2.8",
|
||||
"QtQml/LoggingCategory 2.12",
|
||||
"QtQml/LoggingCategory 6.0"
|
||||
]
|
||||
exportMetaObjectRevisions: [520, 524, 1536]
|
||||
Enum {
|
||||
name: "DefaultLogLevel"
|
||||
lineNumber: 44
|
||||
values: ["Debug", "Info", "Warning", "Critical", "Fatal"]
|
||||
}
|
||||
Property { name: "name"; type: "QString"; read: "name"; write: "setName"; index: 0; lineNumber: 38 }
|
||||
Property {
|
||||
name: "defaultLogLevel"
|
||||
revision: 524
|
||||
type: "DefaultLogLevel"
|
||||
read: "defaultLogLevel"
|
||||
write: "setDefaultLogLevel"
|
||||
index: 1
|
||||
lineNumber: 39
|
||||
}
|
||||
}
|
||||
Component {
|
||||
file: "private/qqmltimer_p.h"
|
||||
lineNumber: 30
|
||||
name: "QQmlTimer"
|
||||
accessSemantics: "reference"
|
||||
parentProperty: "parent"
|
||||
prototype: "QObject"
|
||||
interfaces: ["QQmlParserStatus"]
|
||||
exports: ["QtQml/Timer 2.0", "QtQml/Timer 6.0"]
|
||||
exportMetaObjectRevisions: [512, 1536]
|
||||
Property {
|
||||
name: "interval"
|
||||
type: "int"
|
||||
read: "interval"
|
||||
write: "setInterval"
|
||||
notify: "intervalChanged"
|
||||
index: 0
|
||||
lineNumber: 35
|
||||
}
|
||||
Property {
|
||||
name: "running"
|
||||
type: "bool"
|
||||
read: "isRunning"
|
||||
write: "setRunning"
|
||||
notify: "runningChanged"
|
||||
index: 1
|
||||
lineNumber: 36
|
||||
}
|
||||
Property {
|
||||
name: "repeat"
|
||||
type: "bool"
|
||||
read: "isRepeating"
|
||||
write: "setRepeating"
|
||||
notify: "repeatChanged"
|
||||
index: 2
|
||||
lineNumber: 37
|
||||
}
|
||||
Property {
|
||||
name: "triggeredOnStart"
|
||||
type: "bool"
|
||||
read: "triggeredOnStart"
|
||||
write: "setTriggeredOnStart"
|
||||
notify: "triggeredOnStartChanged"
|
||||
index: 3
|
||||
lineNumber: 38
|
||||
}
|
||||
Property {
|
||||
name: "parent"
|
||||
type: "QObject"
|
||||
isPointer: true
|
||||
read: "parent"
|
||||
index: 4
|
||||
lineNumber: 39
|
||||
isReadonly: true
|
||||
isPropertyConstant: true
|
||||
}
|
||||
Signal { name: "triggered"; lineNumber: 71 }
|
||||
Signal { name: "runningChanged"; lineNumber: 72 }
|
||||
Signal { name: "intervalChanged"; lineNumber: 73 }
|
||||
Signal { name: "repeatChanged"; lineNumber: 74 }
|
||||
Signal { name: "triggeredOnStartChanged"; lineNumber: 75 }
|
||||
Method { name: "start"; lineNumber: 66 }
|
||||
Method { name: "stop"; lineNumber: 67 }
|
||||
Method { name: "restart"; lineNumber: 68 }
|
||||
Method { name: "ticked"; lineNumber: 81 }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
module QtQml
|
||||
linktarget Qt6::qmlplugin
|
||||
optional plugin qmlplugin
|
||||
classname QtQmlPlugin
|
||||
designersupported
|
||||
typeinfo plugins.qmltypes
|
||||
import QML 1.0
|
||||
import QtQml.Models auto
|
||||
import QtQml.WorkerScript auto
|
||||
prefer :/qt-project.org/imports/QtQml/
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Templates as T
|
||||
|
||||
T.AbstractButton {
|
||||
id: control
|
||||
|
||||
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
|
||||
implicitContentWidth + leftPadding + rightPadding)
|
||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
||||
implicitContentHeight + topPadding + bottomPadding)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Templates as T
|
||||
|
||||
T.Action { }
|
||||
@@ -0,0 +1,8 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Templates as T
|
||||
|
||||
T.ActionGroup { }
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls.impl
|
||||
import QtQuick.Templates as T
|
||||
|
||||
T.ApplicationWindow {
|
||||
id: window
|
||||
|
||||
color: window.palette.window
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls.Basic.impl
|
||||
import QtQuick.Templates 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 } }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls.impl
|
||||
import QtQuick.Templates 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
|
||||
|
||||
contentItem: IconLabel {
|
||||
spacing: control.spacing
|
||||
mirrored: control.mirrored
|
||||
display: control.display
|
||||
|
||||
icon: control.icon
|
||||
defaultIconColor: control.checked || control.highlighted ? control.palette.brightText
|
||||
: control.flat && !control.down ? (control.visualFocus ? control.palette.highlight
|
||||
: control.palette.windowText) : control.palette.buttonText
|
||||
text: control.text
|
||||
font: control.font
|
||||
color: defaultIconColor
|
||||
}
|
||||
|
||||
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.visualFocus ? control.palette.highlight : control.palette.windowText
|
||||
border.width: control.visualFocus ? 2 :
|
||||
Qt.styleHints.accessibility.contrastPreference == Qt.HighContrast ? 1 : 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Templates as T
|
||||
|
||||
T.ButtonGroup { }
|
||||
@@ -0,0 +1,9 @@
|
||||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
pragma Singleton
|
||||
|
||||
import QtQuick.Templates as T
|
||||
|
||||
T.Calendar {}
|
||||
@@ -0,0 +1,7 @@
|
||||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick.Templates as T
|
||||
|
||||
T.CalendarModel {}
|
||||
@@ -0,0 +1,68 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Templates as T
|
||||
import QtQuick.Controls.impl
|
||||
|
||||
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: control.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: {
|
||||
if (control.visualFocus)
|
||||
return control.palette.highlight
|
||||
else if (Qt.styleHints.accessibility.contrastPreference !== Qt.HighContrast)
|
||||
return control.palette.mid
|
||||
else
|
||||
return Color.blend(control.palette.dark, control.palette.base,
|
||||
control.enabled ? 0.0 : 0.5)
|
||||
}
|
||||
|
||||
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/Basic/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
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Templates as T
|
||||
import QtQuick.Controls.impl
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
defaultIconColor: control.palette.text
|
||||
text: control.text
|
||||
font: control.font
|
||||
color: defaultIconColor
|
||||
}
|
||||
|
||||
// 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: {
|
||||
if (control.visualFocus)
|
||||
return control.palette.highlight
|
||||
else if (Qt.styleHints.accessibility.contrastPreference !== Qt.HighContrast)
|
||||
return control.palette.mid
|
||||
else
|
||||
return Color.blend(control.palette.dark, control.palette.base,
|
||||
control.enabled ? 0.0 : 0.5)
|
||||
}
|
||||
|
||||
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/Basic/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
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
pragma ComponentBehavior: Bound
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls.impl
|
||||
import QtQuick.Controls.Basic.impl
|
||||
import QtQuick.Templates 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 {
|
||||
required property var model
|
||||
required property int index
|
||||
|
||||
width: ListView.view.width
|
||||
text: model[control.textRole]
|
||||
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/Basic/images/double-arrow.png"
|
||||
opacity: enabled ? 1 : 0.3
|
||||
}
|
||||
|
||||
contentItem: T.TextField {
|
||||
implicitHeight: contentHeight + topPadding + bottomPadding
|
||||
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
|
||||
selectByMouse: control.selectTextByMouse
|
||||
|
||||
color: control.editable ? control.palette.text : control.palette.buttonText
|
||||
selectionColor: control.palette.highlight
|
||||
selectedTextColor: control.palette.highlightedText
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
ContextMenu.menu: TextEditingContextMenu {
|
||||
editor: parent
|
||||
}
|
||||
|
||||
background: Rectangle {
|
||||
visible: control.enabled && control.editable && !control.flat
|
||||
border.width: parent && parent.activeFocus ? 2 : 1
|
||||
border.color: parent && parent.activeFocus ? control.palette.highlight :
|
||||
Qt.styleHints.accessibility.contrastPreference === Qt.HighContrast ?
|
||||
control.palette.buttonText : 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.editable && control.visualFocus ? control.palette.highlight : control.palette.buttonText
|
||||
border.width: (!control.editable && control.visualFocus) ? 2 :
|
||||
Qt.styleHints.accessibility.contrastPreference === Qt.HighContrast ? 1 : 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
|
||||
palette: control.palette
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
// Show a contour around the highlighted item in high contrast mode
|
||||
Rectangle {
|
||||
property Item highlightedItem: parent ? parent.itemAtIndex(control.highlightedIndex) : null
|
||||
visible: Qt.styleHints.accessibility.contrastPreference === Qt.HighContrast && highlightedItem
|
||||
z: 11
|
||||
x: highlightedItem ? highlightedItem.x : 0
|
||||
y: highlightedItem ? highlightedItem.y : 0
|
||||
width: highlightedItem ? highlightedItem.width : 0
|
||||
height: highlightedItem ? highlightedItem.height : 0
|
||||
color: "transparent"
|
||||
border.color: control.palette.dark
|
||||
}
|
||||
|
||||
T.ScrollIndicator.vertical: ScrollIndicator { }
|
||||
}
|
||||
|
||||
background: Rectangle {
|
||||
color: control.palette.window
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Templates as T
|
||||
|
||||
T.Container {
|
||||
id: control
|
||||
|
||||
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
|
||||
implicitContentWidth + leftPadding + rightPadding)
|
||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
||||
implicitContentHeight + topPadding + bottomPadding)
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Templates as T
|
||||
|
||||
T.Control {
|
||||
id: control
|
||||
|
||||
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
|
||||
implicitContentWidth + leftPadding + rightPadding)
|
||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
||||
implicitContentHeight + topPadding + bottomPadding)
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
// Copyright (C) 2022 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Templates as T
|
||||
|
||||
T.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: shortName
|
||||
font: control.font
|
||||
color: control.palette.text
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
required property string shortName
|
||||
}
|
||||
//! [delegate]
|
||||
|
||||
//! [contentItem]
|
||||
contentItem: Row {
|
||||
spacing: control.spacing
|
||||
Repeater {
|
||||
model: control.source
|
||||
delegate: control.delegate
|
||||
}
|
||||
}
|
||||
//! [contentItem]
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls.impl
|
||||
import QtQuick.Templates 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.visualFocus ? control.palette.highlight : control.palette.windowText
|
||||
border.width: control.visualFocus ? 2 :
|
||||
Qt.styleHints.accessibility.contrastPreference === Qt.HighContrast ? 1 : 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls.impl
|
||||
import QtQuick.Controls.Basic.impl
|
||||
import QtQuick.Templates as T
|
||||
|
||||
T.Dial {
|
||||
id: control
|
||||
|
||||
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
|
||||
implicitContentWidth + leftPadding + rightPadding)
|
||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
||||
implicitContentHeight + topPadding + bottomPadding)
|
||||
|
||||
background: DialImpl {
|
||||
implicitWidth: 184
|
||||
implicitHeight: 184
|
||||
color: control.visualFocus ? control.palette.highlight : control.palette.dark
|
||||
progress: control.position
|
||||
opacity: control.enabled ? 1 : 0.3
|
||||
startAngle: control.startAngle
|
||||
endAngle: control.endAngle
|
||||
}
|
||||
|
||||
handle: ColorImage {
|
||||
x: control.background.x + control.background.width / 2 - width / 2
|
||||
y: control.background.y + control.background.height / 2 - 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/Basic/images/dial-indicator.png"
|
||||
antialiasing: true
|
||||
opacity: control.enabled ? 1 : 0.3
|
||||
transform: [
|
||||
Translate {
|
||||
y: -Math.min(control.background.width, control.background.height) * 0.4
|
||||
+ (control.handle ? control.handle.height / 2 : 0)
|
||||
},
|
||||
Rotation {
|
||||
angle: control.angle
|
||||
origin.x: control.handle ? control.handle.width / 2 : 0
|
||||
origin.y: control.handle ? control.handle.height / 2 : 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Templates as T
|
||||
import QtQuick.Controls.impl
|
||||
|
||||
T.Dialog {
|
||||
id: control
|
||||
|
||||
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
|
||||
implicitContentWidth + leftPadding + rightPadding,
|
||||
implicitHeaderWidth,
|
||||
implicitFooterWidth)
|
||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
||||
implicitContentHeight + 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: parent?.parent === Overlay.overlay && 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)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
// Copyright (C) 2023 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Templates 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 as ListView)?.contentWidth
|
||||
|
||||
spacing: 1
|
||||
padding: 12
|
||||
alignment: count === 1 ? Qt.AlignRight : undefined
|
||||
|
||||
delegate: Button {
|
||||
width: control.count === 1 ? control.availableWidth / 2 : undefined
|
||||
}
|
||||
|
||||
contentItem: ListView {
|
||||
implicitWidth: contentWidth
|
||||
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
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
// Copyright (C) 2025 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls.impl
|
||||
import QtQuick.Controls.Basic.impl
|
||||
import QtQuick.Templates as T
|
||||
|
||||
T.DoubleSpinBox {
|
||||
id: control
|
||||
|
||||
// Note: the width of the indicators are calculated into the padding
|
||||
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
|
||||
contentItem.implicitWidth + leftPadding + rightPadding)
|
||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
||||
implicitContentHeight + topPadding + bottomPadding,
|
||||
up.implicitIndicatorHeight, down.implicitIndicatorHeight)
|
||||
|
||||
leftPadding: padding + (control.mirrored ? (up.indicator ? up.indicator.width : 0) : (down.indicator ? down.indicator.width : 0))
|
||||
rightPadding: padding + (control.mirrored ? (down.indicator ? down.indicator.width : 0) : (up.indicator ? up.indicator.width : 0))
|
||||
|
||||
validator: DoubleValidator {
|
||||
locale: control.locale.name
|
||||
bottom: Math.min(control.from, control.to)
|
||||
top: Math.max(control.from, control.to)
|
||||
decimals: control.decimals
|
||||
}
|
||||
|
||||
contentItem: TextInput {
|
||||
z: 2
|
||||
text: control.displayText
|
||||
clip: width < implicitWidth
|
||||
padding: 6
|
||||
|
||||
font: control.font
|
||||
color: control.palette.text
|
||||
selectionColor: control.palette.highlight
|
||||
selectedTextColor: control.palette.highlightedText
|
||||
horizontalAlignment: Qt.AlignHCenter
|
||||
verticalAlignment: Qt.AlignVCenter
|
||||
|
||||
readOnly: !control.editable
|
||||
validator: control.validator
|
||||
inputMethodHints: control.inputMethodHints
|
||||
|
||||
ContextMenu.menu: TextEditingContextMenu {
|
||||
editor: parent
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
visible: control.activeFocus
|
||||
color: "transparent"
|
||||
border.color: control.palette.highlight
|
||||
border.width: 2
|
||||
}
|
||||
}
|
||||
|
||||
up.indicator: Rectangle {
|
||||
x: control.mirrored ? 0 : control.width - width
|
||||
height: control.height
|
||||
implicitWidth: 40
|
||||
implicitHeight: 40
|
||||
color: control.up.pressed ? control.palette.mid : control.palette.button
|
||||
border.color: enabled ? control.palette.text : control.palette.mid
|
||||
border.width: Qt.styleHints.accessibility.contrastPreference === Qt.HighContrast ? 1 : 0
|
||||
|
||||
Rectangle {
|
||||
x: (parent.width - width) / 2
|
||||
y: (parent.height - height) / 2
|
||||
width: parent.width / 3
|
||||
height: 2
|
||||
color: enabled ? control.palette.buttonText : control.palette.mid
|
||||
}
|
||||
Rectangle {
|
||||
x: (parent.width - width) / 2
|
||||
y: (parent.height - height) / 2
|
||||
width: 2
|
||||
height: parent.width / 3
|
||||
color: enabled ? control.palette.buttonText : control.palette.mid
|
||||
}
|
||||
}
|
||||
|
||||
down.indicator: Rectangle {
|
||||
x: control.mirrored ? parent.width - width : 0
|
||||
height: control.height
|
||||
implicitWidth: 40
|
||||
implicitHeight: 40
|
||||
color: control.down.pressed ? control.palette.mid : control.palette.button
|
||||
border.color: enabled ? control.palette.text : control.palette.mid
|
||||
border.width: Qt.styleHints.accessibility.contrastPreference === Qt.HighContrast ? 1 : 0
|
||||
|
||||
Rectangle {
|
||||
x: (parent.width - width) / 2
|
||||
y: (parent.height - height) / 2
|
||||
width: parent.width / 3
|
||||
height: 2
|
||||
color: enabled ? control.palette.buttonText : control.palette.mid
|
||||
}
|
||||
}
|
||||
|
||||
background: Rectangle {
|
||||
implicitWidth: 140
|
||||
color: enabled ? control.palette.base : control.palette.button
|
||||
border.color: {
|
||||
if (Qt.styleHints.accessibility.contrastPreference !== Qt.HighContrast)
|
||||
return control.palette.button
|
||||
return enabled ? control.palette.text : control.palette.mid
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls.impl
|
||||
import QtQuick.Templates as T
|
||||
|
||||
T.Drawer {
|
||||
id: control
|
||||
|
||||
parent: T.Overlay.overlay
|
||||
|
||||
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
|
||||
implicitContentWidth + leftPadding + rightPadding)
|
||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
||||
implicitContentHeight + topPadding + bottomPadding)
|
||||
|
||||
topPadding: SafeArea.margins.top + (control.edge === Qt.BottomEdge)
|
||||
leftPadding: SafeArea.margins.left + (control.edge === Qt.RightEdge)
|
||||
rightPadding: SafeArea.margins.right + (control.edge === Qt.LeftEdge)
|
||||
bottomPadding: SafeArea.margins.bottom + (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)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls.impl
|
||||
import QtQuick.Templates as T
|
||||
|
||||
T.Frame {
|
||||
id: control
|
||||
|
||||
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
|
||||
implicitContentWidth + leftPadding + rightPadding)
|
||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
||||
implicitContentHeight + topPadding + bottomPadding)
|
||||
|
||||
padding: 12
|
||||
|
||||
background: Rectangle {
|
||||
color: "transparent"
|
||||
border.color: Qt.styleHints.accessibility.contrastPreference !== Qt.HighContrast ?
|
||||
control.palette.mid : Color.blend(control.palette.dark, control.palette.base,
|
||||
enabled ? 0.0 : 0.5)
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user