-
Notifications
You must be signed in to change notification settings - Fork 13
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
add a feature and fix a problem with dialogs and popups #23
Conversation
problem: cuteKeyboard can not be use with Dialog and Popup. The Modal do the keyboard unusable cause of there excution. solution: register the QQuickItem of InputPanel in the Backend and set the focusItem as parent of the InputPanel
forgot to registrate the InputPanel in the backend
add space-bar translation as 'spaceIdentifier'. you can add the translation to the map in DeclarativeInputEngine.cpp, fallback 'space'
when there are manny items, there are a lot of connections in backend. if the current item in action, the connection can be handle. if a new item is focus, the 'old' connection can be overwritten.
add missing spaceIdentifier to spaceLayout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for the contribution. Just revert the Yocto recipe
yocto-recipes/cutekeyboard_git.bb
Outdated
@@ -7,6 +7,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2f6f4d4f7d76b223f08e17122d04010f" | |||
DEPENDS += "qtbase qtdeclarative qtmultimedia qtquickcontrols qtsvg qtxmlpatterns" | |||
|
|||
SRCREV = "${AUTOREV}" | |||
SRC_URI = "git://github.com/amarula/cutekeyboard.git;protocol=https;branch=main" | |||
SRC_URI = "git://github.com/freaksdd/cutekeyboard.git;protocol=https;branch=main" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the recipe URI cannot be merged. Revert this one
I revert the change in Yocto recipe. Sorry for it. My knowledgement for versioncontrol are basic. So i don't understand with merges or request's from fork. |
@freaksdd I've tested the change in the example with this code:
but it doesn't work. Did you test with this kind of dialog? |
Hi, first, i' m from germany and my english are not so very well.
I have only test it with Dialog{} and Popup{}.
MessageDialog currently untestet.
In therortic it have to be work, but i will look at the problem and tell
you whats happen.
Am Do., 29. Aug. 2024 um 08:32 Uhr schrieb Andrea Ricchi <
***@***.***>:
… @freaksdd <https://github.com/freaksdd> I've tested the change in the
example with this code:
MessageDialog {
id: dialog
contentItem: RowLayout {
TextField {
placeholderText: ".."
}
Button {
text: "ok"
onClicked: close()
}
}
}
but it doesn't work. Did you test with this kind of dialog?
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADYU5FUQWBJI3LQXYUBY5W3ZT256XAVCNFSM6AAAAABMRTQFA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJWHAYTIOBUGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
No problem, thanks for your contribution. I've also tried with a Dialog, this is the diff:
Maybe we can try the same code 👍 |
i'm a beginnger with git commands.
i have try:
git reset --hard 926f8fe
output:
HEAD is now at 926f8fe Add spaceIdentifier to QwertyLayout
git push --force
output:
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
remote:
remote: Create a pull request for 'master' on GitHub by visiting:
remote: https://github.com/freaksdd/cutekeyboard/pull/new/master
remote:
To https://github.com/freaksdd/cutekeyboard
* [new branch] master -> master
branch 'master' set up to track 'origin/master'.
is this done?
Am Do., 29. Aug. 2024 um 08:34 Uhr schrieb Andrea Ricchi <
***@***.***>:
… Also, instead of having two commits
image.png (view on web)
<https://github.com/user-attachments/assets/7fa7b546-3b32-49b3-9522-0f38ee217ca9>
one that changes and one that reverts, remove both for a clearer history.
Thanks
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADYU5FVWGEVYWM7VNTXKDALZT26HNAVCNFSM6AAAAABMRTQFA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJWHAYTOOJSGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
i found it out and this two commits are deleted.
Am Do., 29. Aug. 2024 um 11:09 Uhr schrieb Peter Gabriel <
***@***.***>:
… i'm a beginnger with git commands.
i have try:
git reset --hard 926f8fe
output:
HEAD is now at 926f8fe Add spaceIdentifier to QwertyLayout
git push --force
output:
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
remote:
remote: Create a pull request for 'master' on GitHub by visiting:
remote: https://github.com/freaksdd/cutekeyboard/pull/new/master
remote:
To https://github.com/freaksdd/cutekeyboard
* [new branch] master -> master
branch 'master' set up to track 'origin/master'.
is this done?
Am Do., 29. Aug. 2024 um 08:34 Uhr schrieb Andrea Ricchi <
***@***.***>:
> Also, instead of having two commits
>
> image.png (view on web)
> <https://github.com/user-attachments/assets/7fa7b546-3b32-49b3-9522-0f38ee217ca9>
>
> one that changes and one that reverts, remove both for a clearer history.
>
> Thanks
>
> —
> Reply to this email directly, view it on GitHub
> <#23 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ADYU5FVWGEVYWM7VNTXKDALZT26HNAVCNFSM6AAAAABMRTQFA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJWHAYTOOJSGA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Hi Andrea Ricchi,
now i was able to be test your Dialog. You are right. It is does not run
with this dialog.
The Dialog is block the hole window so i have to check whats happen.
Am Do., 29. Aug. 2024 um 08:32 Uhr schrieb Andrea Ricchi <
***@***.***>:
… @freaksdd <https://github.com/freaksdd> I've tested the change in the
example with this code:
MessageDialog {
id: dialog
contentItem: RowLayout {
TextField {
placeholderText: ".."
}
Button {
text: "ok"
onClicked: close()
}
}
}
but it doesn't work. Did you test with this kind of dialog?
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADYU5FUQWBJI3LQXYUBY5W3ZT256XAVCNFSM6AAAAABMRTQFA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJWHAYTIOBUGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
i looked at the api. i think the problem is, that the QtQuick.Dialogs is
Abstracted from QMessageBox an this will be instantiate a new window. My
(our) BackendClass can not handle new windows currently.
When you have an idea you are welcome. Currently i have not so much time to
handle this.
Am Do., 29. Aug. 2024 um 08:32 Uhr schrieb Andrea Ricchi <
***@***.***>:
… @freaksdd <https://github.com/freaksdd> I've tested the change in the
example with this code:
MessageDialog {
id: dialog
contentItem: RowLayout {
TextField {
placeholderText: ".."
}
Button {
text: "ok"
onClicked: close()
}
}
}
but it doesn't work. Did you test with this kind of dialog?
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADYU5FUQWBJI3LQXYUBY5W3ZT256XAVCNFSM6AAAAABMRTQFA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJWHAYTIOBUGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
yes i could be do this, but not now. Give me some days and i will do this.
Dear Peter
Am Di., 17. Sept. 2024 um 08:40 Uhr schrieb Andrea Ricchi <
***@***.***>:
… ***@***.**** requested changes on this pull request.
Ok, still that is a good feature to be included.
Can you just improve the git history, so squash the 72f46c8
<72f46c8>
and d2f0b72
<d2f0b72>
and also the 214f261
<214f261>
and 926f8fe
<926f8fe>
.
You can use git rebase -i command.
I think merging a new feature with different commits for the same change
is incorrect.
—
Reply to this email directly, view it on GitHub
<#23 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADYU5FTV7O7DLBSR6CC44A3ZW7FGHAVCNFSM6AAAAABMRTQFA2VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGMBYGUZDGMRUGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @freaksdd I've tried to fix the history but I don't want to merge it manually maybe losing your contribution score on the site, so I've squashed the commits with a new message:
I've used I'll wait for your updates to merge in the main branch. Regards |
Hi Andrea,
i looked again at the history and my Github Desktop shows me, that the
commit is alwas be reverted.
[image: grafik.png]
So when there is not done, i need some help to change it so how do you like.
Dear Peter
Am Mi., 21. Aug. 2024 um 09:33 Uhr schrieb Andrea Ricchi <
***@***.***>:
… ***@***.**** requested changes on this pull request.
Looks good, thanks for the contribution. Just revert the Yocto recipe
------------------------------
In yocto-recipes/cutekeyboard_git.bb
<#23 (comment)>:
> @@ -7,6 +7,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2f6f4d4f7d76b223f08e17122d04010f"
DEPENDS += "qtbase qtdeclarative qtmultimedia qtquickcontrols qtsvg qtxmlpatterns"
SRCREV = "${AUTOREV}"
-SRC_URI = "git://github.com/amarula/cutekeyboard.git;protocol=https;branch=main"
+SRC_URI = "git://github.com/freaksdd/cutekeyboard.git;protocol=https;branch=main"
Changing the recipe URI cannot be merged. Revert this one
—
Reply to this email directly, view it on GitHub
<#23 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADYU5FRROPLEUUSSSZ4NT3DZSQ7FPAVCNFSM6AAAAABMRTQFA2VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDENBZHE4DMOBSGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
so i have think about my changes in the branch. It is possible to delete my
commits and i create a new branch to push it there?
I don't know what i done. I had think, the my fork doesn'tn matter with
your repository. So what do you think about?
Dear Peter
Am Fr., 20. Sept. 2024 um 15:37 Uhr schrieb Andrea Ricchi <
***@***.***>:
… Hi @freaksdd <https://github.com/freaksdd> I've tried to fix the history
but I don't want to merge it manually maybe losing your contribution score
on the site, so I've squashed the commits with a new message:
commit e2cc240 (HEAD -> freaksdd/main)
Author: freaksdd ***@***.***>
Date: Thu Aug 15 07:23:44 2024 +0200
Add translations for the SpaceBar
Added SpaceBar translation with 'spaceIdentifier' property.
The translation can be added to the map inside
DeclarativeInputEngine.cpp, with 'space' as fallback.
commit 67b24dc
Author: freaksdd ***@***.***>
Date: Thu Aug 15 07:35:09 2024 +0200
fix: delete old item-connection
when there are manny items, there are a lot of connections in backend.
if the current item in action, the connection can be handle.
if a new item is focus, the 'old' connection can be overwritten.
commit a11aafa
Author: freaksdd ***@***.***>
Date: Wed Aug 14 14:25:58 2024 +0200
Make Cutekeyboard compatible with Dialogs and Popup
Because of the Modal option, the keyboard doesn't work with Dialogs
and Popups.
The solution is to register the QQuickItem of InputPanel
in the Backend and set the focusItem as parent of the InputPanel.
Note that the keyboard is still incompatible with QtQuick.Dialogs
I've used git rebase -i HEAD~5, moved the fix commit above and used the
squash on the first 2 and latest 2.
I'll wait for your updates to merge in the main branch.
Regards
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADYU5FQCIECG6T3IBYIAMITZXQQINAVCNFSM6AAAAABMRTQFA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRTG42TOMZZGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@freaksdd I've manually updated the commit messages and merged them. Thanks |
Hi Andrea,
Okay many thanks. I very sorry about the conflicts and Trouble i have made.
What ist the next step i can do?
Should i Check the Problem with the Dialog (from the example you have
shared with me)?
Andrea Ricchi ***@***.***> schrieb am Di., 24. Sept. 2024,
09:48:
… @freaksdd <https://github.com/freaksdd> I've manually updated the commit
messages and merged them.
Thanks
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADYU5FXKQQZNVYO7TOUX3FDZYEKLXAVCNFSM6AAAAABMRTQFA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZQGQ2TGNJSG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
return; | ||
} | ||
|
||
// set the focusItem as parent of InputPanel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @AndreaRicchi
Please compare the changes in this file with the patch to qtvirtualkeyboard: https://codereview.qt-project.org/c/qt/qtvirtualkeyboard/+/292472/10 at src/virtualkeyboard/qvirtualkeyboardinputcontext_p.cpp
. Apparently, the relevant changes were copied as-is into cutekeyboard. Could it be seen as a GPL violation?
I wrote two issues before but then i handle it by my self, cause i found a solution for this problems.
feature:
Problem with Dialog and Popups:
Problem:
cuteKeyboard can not be use with Dialog and Popup. The Modal do the keyboard unusable cause of there excution.
Solution:
register the QQuickItem of InputPanel in the Backend and set the focusItem as parent of the InputPanel