Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 wrong suggestion 1428/vs2005
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kika
Junior Member

21 Posts

Posted - Nov 13 2005 :  12:36:41 PM  Show Profile
Hello,

When typing an override for virtual function declared in parent class as
virtual int rowCount(const QModelIndex &parent = QModelIndex());
VAX1428 suggests me this:
virtual int rowCount(const QModelIndex &parent /* = QModelIndex */());
which effectively means
virtual int rowCount(const QModelIndex &parent());


Best regards,\rCyril\r

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 15 2005 :  5:49:00 PM  Show Profile
this is what is supposed to happen when typing the function declaration in the cpp file. as far as i know you always have to remove the default parameter in the declaration. VA suggests it, as a comment, so that you know there is a default, and its default value, without having to check in the header file.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000