mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Janitor: Fix typos in comments and user-facing strings
Also adapt tests for error messages containing the fixed strings. No behavior change is intended!
This commit is contained in:
parent
4b12ed03cf
commit
13d7f5e7bd
96 changed files with 290 additions and 288 deletions
|
@ -385,7 +385,7 @@ public:
|
|||
virtual ModelData row_data(int i) const = 0;
|
||||
/// Sets the data for a particular row. This function should be called with `row < row_count()`.
|
||||
/// If the model cannot support data changes, then it is ok to do nothing (default
|
||||
/// implementation). If the model can update the data, the implmentation should also call
|
||||
/// implementation). If the model can update the data, the implementation should also call
|
||||
/// row_changed.
|
||||
virtual void set_row_data(int, const ModelData &) {};
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
/// Returns the linear gradient's angle in degress.
|
||||
/// Returns the linear gradient's angle in degrees.
|
||||
float angle() const
|
||||
{
|
||||
// The gradient's first stop is a fake stop to store the angle
|
||||
|
|
|
@ -49,8 +49,8 @@ class Value;
|
|||
/// This type represents a runtime instance of structure in `.60`.
|
||||
///
|
||||
/// This can either be an instance of a name structure introduced
|
||||
/// with the `struct` keyword in the .60 file, or an annonymous struct
|
||||
/// writen with the `{ key: value, }` notation.
|
||||
/// with the `struct` keyword in the .60 file, or an anonymous struct
|
||||
/// written with the `{ key: value, }` notation.
|
||||
///
|
||||
/// It can be constructed with the range constructor or initializer lst,
|
||||
/// and converted into or from a Value with the Value constructor and
|
||||
|
@ -456,7 +456,7 @@ inline Value::Value(const std::shared_ptr<sixtyfps::Model<Value>> &model)
|
|||
{
|
||||
std::shared_ptr<sixtyfps::Model<Value>> model;
|
||||
cbindgen_private::ModelNotifyOpaque notify;
|
||||
// This kind of mean that the rust code has ownership of "this" until the drop funciton is
|
||||
// This kind of mean that the rust code has ownership of "this" until the drop function is
|
||||
// called
|
||||
std::shared_ptr<AbstractRepeaterView> self;
|
||||
~ModelWrapper() { cbindgen_private::sixtyfps_interpreter_model_notify_destructor(¬ify); }
|
||||
|
@ -872,7 +872,7 @@ public:
|
|||
///
|
||||
/// Returns the compiled `ComponentDefinition` if there were no errors.
|
||||
///
|
||||
/// Any diagnostics produced during the compilation, such as warnigns or errors, are collected
|
||||
/// Any diagnostics produced during the compilation, such as warnings or errors, are collected
|
||||
/// in this ComponentCompiler and can be retrieved after the call using the diagnostics()
|
||||
/// function.
|
||||
///
|
||||
|
|
|
@ -249,7 +249,7 @@ struct PropertyTracker
|
|||
bool is_dirty() const { return cbindgen_private::sixtyfps_property_tracker_is_dirty(&inner); }
|
||||
|
||||
/// Invokes the provided functor \a f and tracks accessed to any properties during that
|
||||
/// invokation.
|
||||
/// invocation.
|
||||
template<typename F>
|
||||
auto evaluate(const F &f) const -> std::enable_if_t<std::is_same_v<decltype(f()), void>>
|
||||
{
|
||||
|
@ -258,7 +258,7 @@ struct PropertyTracker
|
|||
}
|
||||
|
||||
/// Invokes the provided functor \a f and tracks accessed to any properties during that
|
||||
/// invokation. Use this overload if your functor returns a value, as evaluate() will pass it on
|
||||
/// invocation. Use this overload if your functor returns a value, as evaluate() will pass it on
|
||||
/// and return it.
|
||||
template<typename F>
|
||||
auto evaluate(const F &f) const
|
||||
|
@ -270,7 +270,7 @@ struct PropertyTracker
|
|||
}
|
||||
|
||||
/// Invokes the provided functor \a f and tracks accessed to any properties during that
|
||||
/// invokation.
|
||||
/// invocation.
|
||||
///
|
||||
/// This starts a new dependency chain and if called during the evaluation of another
|
||||
/// property tracker, the outer tracker will not be notified if any accessed properties change.
|
||||
|
@ -283,7 +283,7 @@ struct PropertyTracker
|
|||
}
|
||||
|
||||
/// Invokes the provided functor \a f and tracks accessed to any properties during that
|
||||
/// invokation. Use this overload if your functor returns a value, as evaluate() will pass it on
|
||||
/// invocation. Use this overload if your functor returns a value, as evaluate() will pass it on
|
||||
/// and return it.
|
||||
///
|
||||
/// This starts a new dependency chain and if called during the evaluation of another
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue