Furkanzmc / QML-Coding-Guide

A collection of good practices when writing QML code - https://doc.qt.io/qt/qtqml-index.html
The Unlicense
532 stars 79 forks source link

Not 100% compliant with qml coding conventions #2

Closed rferrazz closed 6 years ago

rferrazz commented 6 years ago

https://doc.qt.io/qt-5/qml-codingconventions.html

Furkanzmc commented 6 years ago

I think coding conventions are subjective and personal taste plays a big role. I chose the style laid out in the documentation based on my personal taste. It seems that a lot of people already adopted that version.

The most common suggestion was to put the id property at the top and I did mention that could be done alternatively in the documentation but I guess I need to make it more clear.

If you have specific points you think should be adopted here as well, please mention those and I'd be happy to make the changes.

rferrazz commented 6 years ago

To be honest the only thing popping into my eyes was the id not on top.

Furkanzmc commented 6 years ago

If that's the case, I will edit the file and put all the id deceleration at the top. I'll make that change later today.

Thanks Riccardo.

rferrazz commented 6 years ago

Thank you for this documentation. It is a precious resource. It would be nice to have an automated way of enforcing a well defined coding style for QML