Skip to content

Commit 83b1f2f

Browse files
committed
synchronize data with python-qt-live-coding
1 parent 0b92920 commit 83b1f2f

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ In constrast to other live coding environments, this project is a live coding QM
77

88
Integrating QML live coding into your application significantly boosts your HMI developers productivity. Compared to stand-alone solutions, this approach enables integration of C++ QML components without deploying them first.
99

10-
Additionally, it enabled customization of the live coding environemnt, including pre-loading of resource intensive QML components.
10+
Additionally, it enables customization of the live coding environemnt, including pre-loading of resource intensive QML components.
11+
12+
**See also**
13+
14+
* [python-qt-live-coding](https://github.com/machinekoder/python-qt-live-coding): The Python version of this project.
1115

1216
## Install
1317

example/example

480 KB
Binary file not shown.

example/live.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ApplicationWindow {
2828
windowSettings.screen = root.screen.serialNumber
2929
}
3030

31-
LiveCoding {
31+
LiveCodingPanel {
3232
id: liveCoding
3333
anchors.fill: parent
3434
}

lib/LiveCoding.qml renamed to lib/LiveCodingPanel.qml

+2-4
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ Item {
134134
root.visibility = Window.AutomaticVisibility
135135
}
136136
}
137-
138-
Component.onCompleted: checked = root.visibility === Window.FullScreen
139137
}
140138

141139
CheckBox {
@@ -149,8 +147,6 @@ Item {
149147
root.flags = root.flags & ~Qt.WindowStaysOnTopHint
150148
}
151149
}
152-
153-
Component.onCompleted: checked = root.flags & Qt.WindowStaysOnTopHint
154150
}
155151
}
156152

@@ -215,4 +211,6 @@ Item {
215211
nameFilters: ["*.qmlc", "*.jsc", "*.pyc", ".#*", ".*", "__pycache__", "*___jb_tmp___", // PyCharm safe write
216212
"*___jb_old___"]
217213
}
214+
215+
// add additional components that should only be loaded once here.
218216
}

lib/cpp_qt_live_coding_plugin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static const struct {
1616
const char *type;
1717
int major, minor;
1818
} qmldir [] = {
19-
{ "LiveCoding", 1, 0 },
19+
{ "LiveCodingPanel", 1, 0 },
2020
{ "FileSelectionDialog", 1, 0 },
2121
};
2222

lib/qml.qrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<RCC>
22
<qresource prefix="/com/machinekoder/live">
33
<file>FileSelectionDialog.qml</file>
4-
<file>LiveCoding.qml</file>
4+
<file>LiveCodingPanel.qml</file>
55
</qresource>
66
</RCC>

0 commit comments

Comments
 (0)