Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
glacier-home
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
glacier-home
Commits
4c9b968b
Commit
4c9b968b
authored
Jan 23, 2015
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[simpanel] Make sim panel entry buttons scalable.
parent
a80c61ba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
26 deletions
+40
-26
NumButton.qml
src/qml/NumButton.qml
+20
-6
SimPanel.qml
src/qml/SimPanel.qml
+20
-20
No files found.
src/qml/NumButton.qml
View file @
4c9b968b
...
@@ -28,15 +28,29 @@
...
@@ -28,15 +28,29 @@
** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
**
****************************************************************************************/
****************************************************************************************/
import
QtQuick
2.1
import
QtQuick
.
Controls
1.0
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
QtQuick
.
Layouts
1.0
Button
{
Rectangle
{
id
:
btn
id
:
btn
width
:
120
Layout.fillWidth
:
true
height
:
40
Layout.fillHeight
:
true
color
:
"
transparent
"
border.color
:
"
white
"
property
alias
text
:
txt
.
text
MouseArea
{
anchors.fill
:
parent
onClicked
:
{
onClicked
:
{
pinquery
.
text
+=
btn
.
text
pinquery
.
text
+=
btn
.
text
}
}
}
Text
{
id
:
txt
anchors.centerIn
:
parent
color
:
"
white
"
}
}
}
src/qml/SimPanel.qml
View file @
4c9b968b
...
@@ -33,6 +33,7 @@ import QtQuick 2.1
...
@@ -33,6 +33,7 @@ import QtQuick 2.1
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
MeeGo
.
QOfono
0.2
import
MeeGo
.
QOfono
0.2
import
QtQuick
.
Layouts
1.0
Component
{
Component
{
CommonPanel
{
CommonPanel
{
...
@@ -57,21 +58,25 @@ Component {
...
@@ -57,21 +58,25 @@ Component {
id
:
simManager
id
:
simManager
}
}
Column
{
Column
Layout
{
visible
:
needsPin
visible
:
needsPin
spacing
:
10
anchors.fill
:
simpanel
Row
{
spacing
:
0
RowLayout
{
spacing
:
16
spacing
:
16
TextField
{
TextField
{
id
:
pinquery
id
:
pinquery
width
:
180
width
:
140
height
:
40
Layout.fillWidth
:
true
Layout.fillHeight
:
false
Layout.preferredHeight
:
20
}
}
Button
{
Button
{
id
:
pinenter
id
:
pinenter
text
:
"
OK
"
text
:
"
OK
"
width
:
120
Layout.fillWidth
:
true
height
:
40
Layout.fillHeight
:
false
Layout.preferredHeight
:
40
onClicked
:
{
onClicked
:
{
simManager
.
enterPin
(
OfonoSimManager
.
SimPin
,
pinquery
.
text
)
simManager
.
enterPin
(
OfonoSimManager
.
SimPin
,
pinquery
.
text
)
pinquery
.
text
=
""
pinquery
.
text
=
""
...
@@ -80,15 +85,18 @@ Component {
...
@@ -80,15 +85,18 @@ Component {
Button
{
Button
{
id
:
clearpin
id
:
clearpin
text
:
"
Clear
"
text
:
"
Clear
"
width
:
120
Layout.fillWidth
:
true
height
:
40
Layout.fillHeight
:
false
Layout.preferredHeight
:
40
onClicked
:
{
onClicked
:
{
pinquery
.
text
=
""
pinquery
.
text
=
""
}
}
}
}
}
}
Row
{
GridLayout
{
spacing
:
16
columnSpacing
:
10
rowSpacing
:
10
columns
:
3
NumButton
{
NumButton
{
text
:
"
1
"
text
:
"
1
"
}
}
...
@@ -98,9 +106,6 @@ Component {
...
@@ -98,9 +106,6 @@ Component {
NumButton
{
NumButton
{
text
:
"
3
"
text
:
"
3
"
}
}
}
Row
{
spacing
:
16
NumButton
{
NumButton
{
text
:
"
4
"
text
:
"
4
"
}
}
...
@@ -110,9 +115,6 @@ Component {
...
@@ -110,9 +115,6 @@ Component {
NumButton
{
NumButton
{
text
:
"
6
"
text
:
"
6
"
}
}
}
Row
{
spacing
:
16
NumButton
{
NumButton
{
text
:
"
7
"
text
:
"
7
"
}
}
...
@@ -122,10 +124,8 @@ Component {
...
@@ -122,10 +124,8 @@ Component {
NumButton
{
NumButton
{
text
:
"
9
"
text
:
"
9
"
}
}
}
Row
{
spacing
:
16
NumButton
{
NumButton
{
Layout.columnSpan
:
3
text
:
"
0
"
text
:
"
0
"
}
}
}
}
...
...
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