Move QML Python stuff to its own subfolder
This commit is contained in:
parent
f4d7636df6
commit
717c5078c7
|
@ -57,7 +57,7 @@ def _process_lines(content: str) -> Generator[str, None, None]:
|
||||||
def convert_to_qml(theme_content: str) -> str:
|
def convert_to_qml(theme_content: str) -> str:
|
||||||
lines = [
|
lines = [
|
||||||
"import QtQuick 2.12",
|
"import QtQuick 2.12",
|
||||||
'import "Base"',
|
'import "../Base"',
|
||||||
"QtObject {",
|
"QtObject {",
|
||||||
" function hsluv(h, s, l, a) { return utils.hsluv(h, s, l, a) }",
|
" function hsluv(h, s, l, a) { return utils.hsluv(h, s, l, a) }",
|
||||||
" function hsl(h, s, l) { return utils.hsl(h, s, l) }",
|
" function hsl(h, s, l) { return utils.hsl(h, s, l) }",
|
||||||
|
|
|
@ -9,7 +9,7 @@ Python {
|
||||||
property bool startupAnyAccountsSaved: false
|
property bool startupAnyAccountsSaved: false
|
||||||
property var pendingCoroutines: ({})
|
property var pendingCoroutines: ({})
|
||||||
|
|
||||||
property PythonEventHandlers eventHandlers: PythonEventHandlers {}
|
property EventHandlers eventHandlers: EventHandlers {}
|
||||||
|
|
||||||
|
|
||||||
function newQmlFuture() {
|
function newQmlFuture() {
|
|
@ -1,6 +1,7 @@
|
||||||
import QtQuick 2.12
|
import QtQuick 2.12
|
||||||
import QtQuick.Controls 2.12
|
import QtQuick.Controls 2.12
|
||||||
import "Base"
|
import "Base"
|
||||||
|
import "PythonBridge"
|
||||||
|
|
||||||
ApplicationWindow {
|
ApplicationWindow {
|
||||||
id: window
|
id: window
|
||||||
|
|
Loading…
Reference in New Issue
Block a user