Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Breeze Style for QQC2
Commits
57e28e00
Commit
57e28e00
authored
Feb 16, 2021
by
Noah Davis
🌵
Browse files
[impl/] Replace aliases to control with relevant Template types
parent
bf7eec47
Changes
9
Hide whitespace changes
Inline
Side-by-side
style/impl/ButtonBackground.qml
View file @
57e28e00
...
...
@@ -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
...
...
style/impl/CheckIndicator.qml
View file @
57e28e00
...
...
@@ -3,14 +3,14 @@
*/
import
QtQuick
2.15
import
QtQuick
.
Control
s
2.15
as
Controls
import
QtQuick
.
Template
s
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
...
...
style/impl/ComboBoxBackground.qml
View file @
57e28e00
...
...
@@ -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
,
...
...
style/impl/IconLabelContent.qml
View file @
57e28e00
...
...
@@ -3,7 +3,7 @@
*/
import
QtQuick
2.15
import
QtQuick
.
Layout
s
1
.15
import
QtQuick
.
Template
s
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
...
...
style/impl/RadioIndicator.qml
View file @
57e28e00
...
...
@@ -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
...
...
style/impl/ScrollHandle.qml
View file @
57e28e00
...
...
@@ -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
...
...
style/impl/SliderHandle.qml
View file @
57e28e00
...
...
@@ -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
...
...
style/impl/SwitchIndicator.qml
View file @
57e28e00
...
...
@@ -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
...
...
style/impl/TextEditBackground.qml
View file @
57e28e00
...
...
@@ -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
||
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment