Skip to content

Run qmlformat for all the UI files with manual clean up

Alexey Andreyev requested to merge work/aa13q/qmlformat into master

Command:

qmlformat -i -n $(find . -name "*.qml")

Additional changes for the record duration text:

  • simplify long string codestyle with an internal object with formatted properties
  • port manual zero padding to ES padStart

Additional general changes:

  • Manual fix qmlformat miss for comment lines
  • Drop QML import version numbers for all the UI files with perl command:
perl -i -pe 's/(import\s\S+)(?:\s?\d+\.\d+)((\s?as\s\S+)?)/$1$2/g' $(find . -name "*.qml")
Edited by Alexey Andreyev

Merge request reports