aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-08-15 16:22:05 +0200
committerAdrian Kummerlaender2015-08-15 16:22:05 +0200
commit90da724a56c2ff20617d3e231a6ef877928df482 (patch)
treebda9514fb386de42217d7467a472f19d0fc911f9 /src
parentd8431223d34476a17835a05d9508e92447f22479 (diff)
downloadMetaTerm-90da724a56c2ff20617d3e231a6ef877928df482.tar
MetaTerm-90da724a56c2ff20617d3e231a6ef877928df482.tar.gz
MetaTerm-90da724a56c2ff20617d3e231a6ef877928df482.tar.bz2
MetaTerm-90da724a56c2ff20617d3e231a6ef877928df482.tar.lz
MetaTerm-90da724a56c2ff20617d3e231a6ef877928df482.tar.xz
MetaTerm-90da724a56c2ff20617d3e231a6ef877928df482.tar.zst
MetaTerm-90da724a56c2ff20617d3e231a6ef877928df482.zip
Expose component settings as properties
Otherwise they are not accessible to JS commands, i.e. they can not be changed in command mode.
Diffstat (limited to 'src')
-rw-r--r--src/StateHandler.qml3
-rw-r--r--src/command/CommandInput.qml3
-rw-r--r--src/list/TerminalItem.qml3
-rw-r--r--src/main.qml3
-rw-r--r--src/widget/Highlighter.qml3
5 files changed, 5 insertions, 10 deletions
diff --git a/src/StateHandler.qml b/src/StateHandler.qml
index d9f5f5a..8de1091 100644
--- a/src/StateHandler.qml
+++ b/src/StateHandler.qml
@@ -8,8 +8,7 @@ Item {
property Item terminalList : null
property CommandInput commandInput : null
- Settings {
- id: settings
+ property Settings settings : Settings {
category: "keybinding"
property string insertMode : "i"
diff --git a/src/command/CommandInput.qml b/src/command/CommandInput.qml
index 99f5d0e..e980c80 100644
--- a/src/command/CommandInput.qml
+++ b/src/command/CommandInput.qml
@@ -13,8 +13,7 @@ Item {
Layout.preferredHeight: container.height
- Settings {
- id: settings
+ property Settings settings : Settings {
category: "command"
property string background : "black"
diff --git a/src/list/TerminalItem.qml b/src/list/TerminalItem.qml
index 57197bd..4c71be4 100644
--- a/src/list/TerminalItem.qml
+++ b/src/list/TerminalItem.qml
@@ -11,8 +11,7 @@ Item {
signal executed (int index)
- Settings {
- id: settings
+ property Settings settings : Settings {
category: "item"
property int fontSize : 18
diff --git a/src/main.qml b/src/main.qml
index f7673dc..2965fa1 100644
--- a/src/main.qml
+++ b/src/main.qml
@@ -9,8 +9,7 @@ ApplicationWindow {
visible: true
- Settings {
- id: settings
+ property Settings settings : Settings {
category: "window"
property string background : "#161616"
diff --git a/src/widget/Highlighter.qml b/src/widget/Highlighter.qml
index e42aeb1..b2db7f6 100644
--- a/src/widget/Highlighter.qml
+++ b/src/widget/Highlighter.qml
@@ -2,8 +2,7 @@ import QtQuick 2.0
import Qt.labs.settings 1.0
Item {
- Settings {
- id: settings
+ property Settings settings : Settings {
category: "highlighter"
property string defaultColor : "#909636"