User Tools

Site Tools


coding_style

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
coding_style [2016/03/11 12:17] – [Naming] jmgrcoding_style [2016/03/11 12:36] – [Naming] jmgr
Line 63: Line 63:
     //...     //...
 } }
 +</code>
 +
 +**Variables representing GUI elements should be suffixed by their type**
 +<code cpp>
 +// Bad
 +QPushButton *exitApplication;
 +QLabel *duckCount;
 +
 +// Good
 +QPushButton *exitApplicationPushButton;
 +QLabel *duckCountLabel;
 </code> </code>
 ===== Code files ===== ===== Code files =====
coding_style.txt · Last modified: 2023/04/25 16:52 by 127.0.0.1