Closed davidlatwe closed 4 years ago
Maybe this is helping the users too much, but maybe the "Invalid subset name..." message could tell the users which characters are invalid?
Yeah, I thought about that, too. But seems complex to implement :worried:
Hmm since the "Create" button gets invalidated, it might not be a must have. Great work!
Haha, turns out it's not that hard :P Implemented in commit 79ed093, and here's the demo (Note that the space char will be quoted)
What do you think ?
Amazing!
Wait, it seems that QLineEdit
already has a feature to validate the input text, QLineEdit.setValidator.
Well try this when I get back from 2 days vacation.
I have change to use QValidator
to block invalid inputs, also add a tool tip.
Here the result :
Note that the invalid characters will not be accepted at all, so I add a border color transition animation for better feedback.
Please let me know what you think about this change :)
Looks great!
I love it!
Well merge this tomorrow !
This PR resolve #289, Creator will ensure the subset name is valid for MongoDB.
What's changed?