Explain: bool _showArgumentNames: 1;
-
@
bool _showArgumentNames: 1;
@
What is this?@
TypePrettyPrinter::TypePrettyPrinter(const Overview *overview)
: _showArgumentNames(false)
{
@Please explain both the statments. Source lines are taken from qtcreator source code.
[Edit: Code hightlighting / Vass, Volker]
-
[quote author="Yash" date="1293020286"]bool _showArgumentNames: 1;
What is this?[/quote]
It's a bitfield inside a struct or a class. It means that that variable is 1 bit wide. http://en.wikipedia.org/wiki/C_syntax#Bit_fields
[quote]
TypePrettyPrinter::TypePrettyPrinter(const Overview *overview)
: _showArgumentNames(false)Please explain both the statments. Source lines are taken from qtcreator source code.
[/quote]It's a member initialization in the initialization list. http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.6
Check out some C++ books :-) http://developer.qt.nokia.com/wiki/Books_and_Links_for_learning_C_and_advanced_topics
-
Seems there is a bug here. In the first post second code snippet the _ is not visible to me.
Using Fire Fox on Windows 7.
-
[quote author="QtK" date="1293042556"]
Seems there is a bug here. In the first post second code snippet the _ is not visible to me.
Using Fire Fox on Windows 7.[/quote]
Seems to be am issue with the vertical scrollbar, it scrolls one or two pixels which makes the underscore visible or not...
-
and in FF it does not show that vertical scroll bar in this case.