diff options
Diffstat (limited to 'basicsuite/launchersettings')
-rw-r--r-- | basicsuite/launchersettings/NetworkList.qml | 12 | ||||
-rw-r--r-- | basicsuite/launchersettings/PoweroffAction.qml | 1 | ||||
-rw-r--r-- | basicsuite/launchersettings/RebootAction.qml | 1 | ||||
-rw-r--r-- | basicsuite/launchersettings/main.qml | 2 |
4 files changed, 12 insertions, 4 deletions
diff --git a/basicsuite/launchersettings/NetworkList.qml b/basicsuite/launchersettings/NetworkList.qml index 204e4e2..1820dac 100644 --- a/basicsuite/launchersettings/NetworkList.qml +++ b/basicsuite/launchersettings/NetworkList.qml @@ -108,7 +108,7 @@ Item { } Rectangle { - width: Math.max(100 + network.signalStrength, 0) / 100 * parent.width; + id: signalStrengthBar height: 20 radius: 10 antialiasing: true @@ -117,6 +117,15 @@ Item { anchors.top: parent.top color: "#BF8888" border.color: "#212126" + + property int strengthBarWidth: Math.max(100 + network.signalStrength, 0) / 100 * parent.width + onStrengthBarWidthChanged: { + if (strengthBarWidth > parent.width * 0.7) + signalStrengthBar.width = parent.width * 0.7 + else + signalStrengthBar.width = strengthBarWidth + } + } MouseArea { @@ -133,6 +142,7 @@ Item { visible: !connected anchors.horizontalCenter: parent.horizontalCenter font.pixelSize: 18 + inputMethodHints: Qt.ImhNoPredictiveText } Button { diff --git a/basicsuite/launchersettings/PoweroffAction.qml b/basicsuite/launchersettings/PoweroffAction.qml index 8c14b79..d0bcd39 100644 --- a/basicsuite/launchersettings/PoweroffAction.qml +++ b/basicsuite/launchersettings/PoweroffAction.qml @@ -43,6 +43,5 @@ import QtDroid.Utils 1.0 Action { - text: "Power Off!" onTriggered: DroidUtils.powerOffSystem()(); } diff --git a/basicsuite/launchersettings/RebootAction.qml b/basicsuite/launchersettings/RebootAction.qml index e6f57ca..995fb61 100644 --- a/basicsuite/launchersettings/RebootAction.qml +++ b/basicsuite/launchersettings/RebootAction.qml @@ -43,6 +43,5 @@ import QtDroid.Utils 1.0 Action { - text: "Reboot" onTriggered: DroidUtils.rebootSystem(); } diff --git a/basicsuite/launchersettings/main.qml b/basicsuite/launchersettings/main.qml index dbd1a31..7c4daaf 100644 --- a/basicsuite/launchersettings/main.qml +++ b/basicsuite/launchersettings/main.qml @@ -1,4 +1,4 @@ -/**************************************************************************** +/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: For any questions to Digia, please use the contact form at |