Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QT6 port #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

QT6 port #20

wants to merge 2 commits into from

Conversation

Kasper24
Copy link

@Kasper24 Kasper24 commented Mar 15, 2024

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

@Kasper24 Kasper24 mentioned this pull request Mar 15, 2024
@xkain
Copy link

xkain commented Mar 26, 2024

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
Copy link

zorael commented Mar 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants