mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Change slint enum values to be PascalCase in rust
... while still being kebab-case in .slint Some enums might become public API and we want to have them as PascalCase to respect the rust conventions
This commit is contained in:
parent
f6a3e741cf
commit
ac4f3e97ad
31 changed files with 421 additions and 384 deletions
|
@ -21,7 +21,7 @@ fn enums(path: &Path) -> anyhow::Result<()> {
|
|||
writeln!(enums, "enum class {} {{", stringify!($Name))?;
|
||||
$(
|
||||
$(writeln!(enums, " ///{}", $value_doc)?;)*
|
||||
writeln!(enums, " {},", i_slint_common::enums::cpp_escape_keyword(stringify!($Value).trim_start_matches("r#")))?;
|
||||
writeln!(enums, " {},", stringify!($Value).trim_start_matches("r#"))?;
|
||||
)*
|
||||
writeln!(enums, "}};")?;
|
||||
)*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue