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

Selection of adapter in Application Settings doesn't work #396

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

jmlich
Copy link
Contributor

@jmlich jmlich commented Sep 20, 2024

It seems the cboLocalAdapter.value is read only

[20240920 10:25:57.635 CEST W] qrc:/qml/pages/Settings-app.qml:30 - qrc:/qml/pages/Settings-app.qml:30: TypeError: Cannot assign to read-only property "value"

It seems other ComboBoxPL objects are using currentIndex instead of value (which is alias to ComboBox.currentText).

I wasn't able to use .index(),.data(), and roles, so I have added .get() method into AdapterModel into piggz/qble#2

@jmlich jmlich changed the title Set currentIndex instead of value in ComboBox Selection of adapter in Application Settings doesn't work Sep 20, 2024
@piggz piggz merged commit 83ba426 into piggz:master Oct 14, 2024
3 of 4 checks passed
@jmlich jmlich deleted the combobox-index branch October 14, 2024 15:25
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.

2 participants