-
Notifications
You must be signed in to change notification settings - Fork 6
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dialogs and tweaks #26
Conversation
Convert Page to Dialog with header and remove button
Anchor page to header to avoid clipping Scale width to parent rather than page Enable enter key after input only
Also put cursor at end of word when editing vocabulary
Thanks a lot! I'll look into it and test it. There were two reasons why I used a button in the original design:
For me it is important that 1. still holds true (that is, in case of any error the page is still open and thus the input is not lost). Have you tested that case? |
I see...I wasn't aware of that.
In fact this started as a simple hack using Patchmanager to change the
QML files. And that is also the only testing I did: Applying the patch
to see if it works.
My knowledge of QML and QTQuick is very rudimentary - basically what die
documentation says about dialogs. Other than looking for the pop command
I did not examine the functions further.
There are some bools that allow checking the transient state of the
Dialog when closing but to me it's unclear if that might with help error
handling.
https://sailfishos.org/develop/docs/silica/qml-sailfishsilica-sailfish-silica-dialog.html/#acceptPending-prop
|
I've run some tests, and unfortunately I couldn't get the page to stop closing if an error occured (to test this, simply add "return false;" before this line). Because of that, I'll not merge this branch. If anyone has an idea how to fix it, I'll be happy to merge the changes. Thanks again for the suggestion. |
That's a pity. Well, thanks for trying.
I'm sorry that I can't be of any help with the error catching. Maybe in
the future something comes up. I'll continue to use the homebrew patch ;)
|
Converts QML pages for adding and editing (
Add.qml
,Edit.qml
) vocabulary into Silica Dialogs (no buttons, please 馃槈 ).Also adds some fine tuning:
word
) when adding vocabularyword
) when editingNew add dialog:
Acceptable after input:
Edit dialog: