Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[qt] dropping qt4 support
Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
- Loading branch information
Denis Zalevskiy
committed
Jul 24, 2013
1 parent
a0157e4
commit 67d8aa0
Showing
4 changed files
with
38 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,45 @@ | ||
| import Qt 4.7 | ||
| import QtQuick 1.1 | ||
| import QtQuick 2.0 | ||
| import Sailfish.Silica 1.0 | ||
| import Sailfish.Silica.theme 1.0 | ||
| import org.freedesktop.contextkit 1.0 | ||
|
|
||
| Rectangle { | ||
| color: "navy" | ||
| width: 320 | ||
| height: 200 | ||
| width: 480 | ||
| height: 480 | ||
|
|
||
| ContextProperty { | ||
| key: "Battery.ChargePercentage" | ||
| id: percentage | ||
| value: 0 // default | ||
| Column { | ||
| width: parent.width | ||
| Repeater { | ||
| model : ["Battery.ChargePercentage" | ||
| , "Battery.IsCharging" | ||
| , "Battery.OnBattery" | ||
| , "Battery.TimeUntilFull" | ||
| , "Battery.TimeUntilLow" | ||
| , "Bluetooth.Enabled" | ||
| , "Bluetooth.Connected" | ||
| , "Bluetooth.Visible" | ||
| , "System.OfflineMode" | ||
| ] | ||
| Row { | ||
| spacing: 10 | ||
| ContextProperty { | ||
| key: modelData | ||
| id: src | ||
| value: "" | ||
| onValueChanged: console.log(key + "->" + value + "/" + typeof(value)) | ||
| } | ||
| Label { | ||
| color: Theme.highlightColor | ||
| text: src.key | ||
| } | ||
|
|
||
| Label { | ||
| text: src.value | ||
| } | ||
| } | ||
| } | ||
|
|
||
| Text { | ||
| anchors { centerIn: parent } | ||
| text: "Battery level: " + percentage.value + "%" | ||
| } | ||
|
|
||
| } |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.