QOpenHD icon indicating copy to clipboard operation
QOpenHD copied to clipboard

Use consistent coding style

Open steveatinfincia opened this issue 5 years ago • 2 comments

A lot of the code has mixedCase and underscore_case, which is inconsistent but also leads to odd situations where Qt derives the name of a slot automatically, and ends up with onSlot_nameChanged.

Qt seems to prefer mixed case, so we should just use it everywhere.

We should also ensure there are 2 spaces between method implementations, and use the /* */ comment style for multi-line comments.

steveatinfincia avatar Apr 02 '20 03:04 steveatinfincia

A lot of the code has mixedCase and underscore_case, which is inconsistent but also leads to odd situations where Qt derives the name of a slot automatically, and ends up with onSlot_nameChanged.

Qt seems to prefer mixed case, so we should just use it everywhere.

We should also ensure there are 2 spaces between method implementations, and use the /* */ comment style for multi-line comments.

Noted! And guilty :p ... Ill try to some cleanup

pilotnbr1 avatar Apr 02 '20 12:04 pilotnbr1

Nah it's me, I've been using different case styles every other day :D

steveatinfincia avatar Apr 02 '20 16:04 steveatinfincia