Commit 57e28e00 authored by Noah Davis's avatar Noah Davis 🌵
Browse files

[impl/] Replace aliases to control with relevant Template types

parent bf7eec47
......@@ -11,7 +11,7 @@ import org.kde.kirigami 2.14 as Kirigami
Kirigami.ShadowedRectangle {
id: mainBackground
property alias control: mainBackground.parent
property T.AbstractButton control: mainBackground.parent
// Segmented button control group properties
property T.ButtonGroup buttonGroup: control.T.ButtonGroup.group
......
......@@ -3,14 +3,14 @@
*/
import QtQuick 2.15
import QtQuick.Controls 2.15 as Controls
import QtQuick.Templates 2.15 as T
import org.kde.kirigami 2.14 as Kirigami
import org.kde.breeze 1.0
Rectangle {
id: root
property alias control: root.parent
property T.AbstractButton control: root.parent
property int checkState: control.checkState
property int symbolSize: Kirigami.Units.symbolSize(Math.min(width, height))
property bool mirrored: control.mirrored
......
......@@ -17,7 +17,7 @@ import org.kde.kirigami 2.14 as Kirigami
Rectangle {
id: mainBackground
property alias control: mainBackground.parent
property T.ComboBox control: mainBackground.parent
property color flatColor: Qt.rgba(
Kirigami.Theme.backgroundColor.r,
......
......@@ -3,7 +3,7 @@
*/
import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Templates 2.15 as T
import org.kde.kirigami 2.14 as Kirigami
import org.kde.breeze 1.0
......@@ -12,7 +12,7 @@ IconLabelLayout {
// NOTE: Remember to use root.mirrored, not control.mirrored in this file
// Controls can change the mirrored property of this component and those
// changes will be ignored if you use control.mirrored directly.
property alias control: root.parent
property T.AbstractButton control: root.parent
property bool reserveSpaceForIndicator: false
property bool reserveSpaceForIcon: false
property bool reserveSpaceForArrow: false
......
......@@ -3,6 +3,7 @@
*/
import QtQuick 2.15
import QtQuick.Templates 2.15 as T
import org.kde.kirigami 2.14 as Kirigami
// TODO: replace with ShadowedRectangle because it produces smoother circles.
......@@ -11,7 +12,7 @@ import org.kde.kirigami 2.14 as Kirigami
Rectangle {
id: root
property alias control: root.parent
property T.AbstractButton control: root.parent
property bool mirrored: control.mirrored
readonly property bool controlHasContent: control.contentItem && control.contentItem.width > 0
......
......@@ -8,7 +8,7 @@ import org.kde.kirigami 2.14 as Kirigami
Rectangle {
id: root
property alias control: root.parent
property T.Control control: root.parent
// ScrollIndicator does not have a policy property
property int policy: T.ScrollBar.AsNeeded
// ScrollIndicator does not have a pressed property
......
......@@ -3,14 +3,13 @@
*/
import QtQuick 2.15
import QtQuick.Controls 2.15 as Controls
import QtQuick.Controls.impl 2.15
import QtQuick.Templates 2.15 as T
import org.kde.kirigami 2.14 as Kirigami
Rectangle {
id: root
property alias control: root.parent
property T.Control control: root.parent
property real position: control.position
property real visualPosition: control.visualPosition
property bool hovered: control.hovered
......
......@@ -3,14 +3,13 @@
*/
import QtQuick 2.15
import QtQuick.Controls 2.15 as Controls
import QtQuick.Controls.impl 2.15
import QtQuick.Templates 2.15 as T
import org.kde.kirigami 2.14 as Kirigami
Item {
id: root
property alias control: root.parent
property T.AbstractButton control: root.parent
property bool mirrored: control.mirrored
readonly property bool controlHasContent: control.contentItem && control.contentItem.width > 0
......
......@@ -9,7 +9,7 @@ import org.kde.kirigami 2.14 as Kirigami
Rectangle {
id: root
property alias control: root.parent
property Item control: root.parent
property bool visualFocus: control.activeFocus && (
control.focusReason == Qt.TabFocusReason ||
control.focusReason == Qt.BacktabFocusReason ||
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment