-
Notifications
You must be signed in to change notification settings - Fork 65
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
Map view visual redesign #3017
Map view visual redesign #3017
Conversation
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
Q_INVOKABLE void add( const QString &message, uint interval, NotificationType::MessageType type, NotificationType::IconType icon ); | ||
|
||
//! Convinient methods to save typing of some parameters | ||
Q_INVOKABLE void addSuccess( const QString &message ); |
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.
at least I would add expiration time here with default NotificationModel::DEFAULT_NOTIFICATION_EXPIRATION_SECS
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.
I prefer not going down that path, we can instead define additional methods also with expiration. QML/JS engine does not work well with C++'s default arguments or method overloads.
@@ -262,7 +262,7 @@ Item { | |||
}, | |||
State { | |||
name: "notAtTarget" | |||
when: state != "atTarget" | |||
when: state !== "atTarget" |
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.
so this was a bug?
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.
Not necessarily, it was JS warning. This way it won't perform type coercion https://medium.com/@atuljha2402/understanding-javascript-type-coercion-type-conversion-a2ce84c00331#:~:text=Comparison%20Coercion%3A
Updated map view to the new design:
Highlight will be added in another PR
Best to go over commits one by one :)