dark-eye / com.darkeye.chatGPT

KDE Plasma plasmoid for chatGPT
BSD 3-Clause "New" or "Revised" License
56 stars 16 forks source link

QT6 port #20

Open Kasper24 opened 6 months ago

Kasper24 commented 6 months ago

I'm not a QML/QT expert, but this is based off https://develop.kde.org/docs/plasma/widget/porting_kf6/

I also adjusted the settings UI a bit, because the helper text was really small. Instead I set it to a lower opacity to indicate that it's helping text

xkain commented 5 months ago

Hi,

it's been two days that the plasmoid with your update plasma 6 remains stuck on the connection panel, when I click on connect it opens the connection web page, once connected it sends me to the chatgpt web page but the plasmoid displays always the connection panel : Copie d'écran_20240326_123009

zorael commented 5 months ago

It works but Plasma outputs a lot of QML errors.

file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/main.qml:255:13: QML WebEngineProfile: Binding loop detected for property "downloadPath"
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/main.qml:237:4: QML Binding: Property 'hideOnWindowDeactivate' does not exist on Plasmoid.
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/main.qml:80:3: QML Connections: Detected function "onExpandedChanged" in Connections element. This is probably intended to bea signal handler but no signal of the target matches the name.
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/main.qml:148: ReferenceError: theme is not defined
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/main.qml:197:8: Unable to assign [undefined] to bool
qml: Plasmoid status changed 4
qt.qml.context: file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/main.qml:352:4 Parameter "request" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/main.qml:295: ReferenceError: loadRequest is not defined
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/main.qml:295: ReferenceError: loadRequest is not defined
qml: Failed to load ChatGPT page, reloading as we are hidden..
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/main.qml:295: ReferenceError: loadRequest is not defined
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/main.qml:295: ReferenceError: loadRequest is not defined
qml: Plasmoid status changed 0
qml: Plasmoid status changed 4
qt.qml.context: file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/main.qml:71:3 Parameter "event" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.
qml: Plasmoid status changed 0
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/configGeneral.qml:9:1: QML SimpleKCM: Created graphical object was not placed in the graphics scene.
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_allowClipboardAccessDefault
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_debugConsole
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_debugConsoleDefault
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_downloadLocationDefault
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_focusInterval
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_icon
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_iconDefault
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_matchThemeDefault
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_maxReloadTime
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_pin
file:///home/zorael/.local/share/plasma/plasmoids/com.darkeye.chatGPT/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_sendOnEnterDefault
kf.i18n: 0 instead of 1 arguments to message "Select Download Path..." supplied before conversion

None of the settings in the Configure Plasmoid window actually stick. (They all go back to being disabled after you click OK.)

Additionally there is something wrong with the Select Download Path button string.

gpt-plasma-config