Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use var properties instead of obsolete variant
  • Loading branch information
pvuorela committed Mar 2, 2017
1 parent d9596bc commit 2094729
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions qml/Keyboard.qml
Expand Up @@ -23,9 +23,9 @@ Item {
id: keyboard

property int keyModifiers
property variant resetSticky: 0
property variant currentStickyPressed: null
property variant currentKeyPressed: 0
property var resetSticky: 0
property var currentStickyPressed: null
property var currentKeyPressed: 0

property string keyFgColor: "#ffffff"
property string keyBgColor: "#202020"
Expand Down Expand Up @@ -59,10 +59,11 @@ Item {
spacing: keyboard.keyspacing
Repeater {
id: colRepeater

property int rowIndex: index
model: keyLoader.vkbColumns()
delegate: Key {
property variant keydata: keyLoader.keyAt(colRepeater.rowIndex, index)
property var keydata: keyLoader.keyAt(colRepeater.rowIndex, index)
label: keydata[0]
code: keydata[1]
label_alt: keydata[2]
Expand Down
2 changes: 1 addition & 1 deletion qml/LayoutWindow.qml
Expand Up @@ -22,7 +22,7 @@ import QtQuick 2.0
PopupWindow {
id: layoutWindow

property variant layouts: [""]
property var layouts: [""]

Component {
id: listDelegate
Expand Down
2 changes: 1 addition & 1 deletion qml/Lineview.qml
Expand Up @@ -23,7 +23,7 @@ import FingerTerm 1.0
Rectangle {
id: lineView

property variant lines: [""]
property var lines: [""]
property int fontPointSize: util.fontSize
property int cursorX: 1
property int cursorWidth: 10
Expand Down
2 changes: 1 addition & 1 deletion qml/UrlWindow.qml
Expand Up @@ -22,7 +22,7 @@ import QtQuick 2.0
PopupWindow {
id: urlWindow

property variant urls: [""]
property var urls: [""]

Component {
id: listDelegate
Expand Down

0 comments on commit 2094729

Please sign in to comment.