https://bugs.kde.org/show_bug.cgi?id=394699

            Bug ID: 394699
           Summary: Enums from KWin are missing in QML scripts
           Product: kwin
           Version: 5.12.5
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: scripting
          Assignee: kwin-bugs-n...@kde.org
          Reporter: lord_si...@live.de
  Target Milestone: ---

Created attachment 112877
  --> https://bugs.kde.org/attachment.cgi?id=112877&action=edit
Minimal test script for QML and Javascript

The following command prints different things when called from a QML script
(X-Plasma-API=declarativescript) or from plain Javascript
(X-Plasma-API=javascript):

print(Object.keys(KWin));

In QML:
[objectName,objectNameChanged,readConfig,readConfig,registerWindow,registerShortcut]

In Javascript:
"PlacementArea,MovementArea,MaximizeArea,MaximizeFullArea,FullScreenArea,WorkArea,FullArea,ScreenArea,ElectricTop,ElectricTopRight,ElectricRight,ElectricBottomRight,ElectricBottom,ElectricBottomLeft,ElectricLeft,ElectricTopLeft,ELECTRIC_COUNT,ElectricNone"

Because of this there is no way to use these enums in QML.

I added my testcases as an attachment.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to