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
Plasma Mobile
Commits
d206d498
Commit
d206d498
authored
Oct 25, 2019
by
Bhushan Shah
📱
Browse files
Add back the components, this fixes the sim pin page
parent
aeea4f92
Changes
2
Hide whitespace changes
Inline
Side-by-side
shell/contents/components/DialerButton.qml
0 → 100644
View file @
d206d498
import
QtQuick
2.0
import
org
.
kde
.
plasma
.
core
2.0
as
PlasmaCore
Text
{
width
:
parent
.
width
/
parent
.
columns
height
:
parent
.
buttonHeight
horizontalAlignment
:
Qt
.
AlignHCenter
verticalAlignment
:
Qt
.
AlignVCenter
color
:
dialer
.
textColor
font.pixelSize
:
Math
.
floor
((
width
-
(
units
.
largeSpacing
))
/
2
)
property
alias
sub
:
longHold
.
text
property
var
callback
MouseArea
{
anchors.fill
:
parent
onClicked
:
{
if
(
callback
)
{
callback
();
}
else
{
addNumber
(
parent
.
text
);
}
}
onPressAndHold
:
{
if
(
longHold
.
visible
)
{
addNumber
(
longHold
.
text
);
}
else
{
addNumber
(
parent
.
text
);
}
}
}
Text
{
id
:
longHold
anchors
{
top
:
parent
.
top
right
:
parent
.
right
}
height
:
parent
.
height
width
:
parent
.
width
/
3
verticalAlignment
:
Qt
.
AlignVCenter
visible
:
text
.
length
>
0
opacity
:
0.7
font.pixelSize
:
parent
.
pixelSize
*
.
8
color
:
parent
.
color
}
}
shell/contents/components/DialerIconButton.qml
0 → 100644
View file @
d206d498
import
QtQuick
2.0
import
org
.
kde
.
plasma
.
core
2.0
as
PlasmaCore
Item
{
width
:
parent
.
width
/
parent
.
columns
height
:
parent
.
buttonHeight
property
var
callback
property
string
text
property
string
sub
property
alias
source
:
icon
.
source
PlasmaCore.IconItem
{
id
:
icon
width
:
units
.
iconSizes
.
medium
height
:
width
anchors.centerIn
:
parent
}
MouseArea
{
anchors.fill
:
parent
onClicked
:
{
if
(
callback
)
{
callback
();
}
else
{
addNumber
(
parent
.
text
);
}
}
onPressAndHold
:
{
if
(
parent
.
sub
.
length
>
0
)
{
addNumber
(
parent
.
sub
);
}
else
{
addNumber
(
parent
.
text
);
}
}
}
}
Write
Preview
Markdown
is supported
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