Commit 5ef7934b authored by Uwe L. Korn's avatar Uwe L. Korn Committed by Tristan Matthews
Browse files

qt4: Add a 'virtual vs Q_DECL_OVERRIDE' section



This should explain when to use the virtual keyword or the
Q_DECL_OVERRIDE macros on virtual function declarations.
Signed-off-by: default avatarTristan Matthews <le.businessman@gmail.com>
parent 212bf2e8
......@@ -43,6 +43,14 @@ So if your dialog is a dialog you are used to keep during a playing of a video,
QVLCFrame: extended panel, messages...
QVLCDialog: preferences, open...
** virtual vs Q_DECL_OVERRIDE **
Only mark functions with the virtual keyword if this is the initial virtual
declaration. Functions that override a virtual function should have the
Q_DECL_OVERRIDE macro appended (which expands to the override identifier
when compiled with Qt5 and C++11). This is a visual indicator to distinguish
virtual declarations from overriding implementations and will include a
compile-time check in C++11 language mode.
** HIG for Qt **
We tend to use GNOME/KDE specs over Vista ones for capitalizations:
We use Header for:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment