[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 Bug Janitor Service changed: What|Removed |Added Resolution|WAITINGFORINFO |WORKSFORME Status|NEEDSINFO |RESOLVED --- Comment #9 from Bug Janitor Service --- This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 --- Comment #8 from Bug Janitor Service --- Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 kde@grau.net changed: What|Removed |Added Resolution|--- |WAITINGFORINFO CC||kde@grau.net Status|REPORTED|NEEDSINFO --- Comment #7 from kde@grau.net --- This issue report is quite old. Can you please confirm, that it still persists with KDE 5.23? -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 --- Comment #6 from Martin Flöser--- My analysis is slightly different. For JS the WorkspaceWrapper is exported as "KWin", while for QML the JSEngineGlobalMethodsWrapper is exported as KWin. I don't really see a solution to make this work in an API compatible way, which I think is not that much of a problem. We never tried to have JS and QML API compatible. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 Kai Uwe Broulikchanged: What|Removed |Added CC||k...@privat.broulik.de --- Comment #5 from Kai Uwe Broulik --- The problem is that KWin sets JSEngineGlobalMethodsWrapper as context property but in QML enums are bound to a type and not a specific instance. So KWin would need to qmlRegisterType under an import to make this work. Not sure that import can be under the same name as the context property, so a simple "KWin.PlacementArea" like is done in JS is probably not possible. Another approach would be to add a bunch of CONSTANT int Q_PROPERTYs on the object to make it behave exactly like the JS one. (Also I noticed the class is missing the electric border enum that JS has) -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 --- Comment #4 from Sigma--- It does not seem so (I added workspace to the examples from the attachment), neither in JS nor QML. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 --- Comment #3 from Martin Flöser--- The enums might be available on the workspace object. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 --- Comment #2 from Sigma--- I am using Qt 5.10.1. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 --- Comment #1 from Martin Flöser--- which Qt version are you using? -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 Sigmachanged: What|Removed |Added CC||lord_si...@live.de -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 Sigmachanged: What|Removed |Added Attachment #112877|Minimal test script for QML |Minimal examples for QML description|and Javascript |and Javascript -- You are receiving this mail because: You are watching all bug changes.