Hi,
I have the following struct:
struct ChartFormatting
{
ChartFormatting();
int gridColour; ///< The main grid
int graphColour; ///< The actual data line
int markColour; ///< Marks highlighting specific values
int backColour; ///< The background
int labelColour; ///< The labels
int dataWidth; ///< The width of the data line(s)
int markWidth; ///< The width of the mark line(s)
const char *font; ///< The font name for labels
double fontSize; ///< The font size (points)
};
In a function using this, I typed
pChart->yAxis()->setWidth( m_formatting.axisWidth );
I then did Create From Usage... on axisWidth. I got the following:
struct ChartFormatting
{
ChartFormatting();
int gridColour; ///< The main grid
int graphColour; ///< The actual data line
int markColour; ///< Marks highlighting specific values
int backColour; ///< The background
int labelColour; ///< The labels
int dataWidth; ///< The width of the data line(s)
int markWidth; ///< The width of the mark line(s)
const char *font; ///< The font name for labels
double fontSize; ///< The font size (points)
axisWidth;
};
Note axisWidth has been added, but has no type.
When I hover over setWidth, VA correctly tells me it's
void Axis::setWidth( int width )
I would have expected axisWidth to be added as an int. It would have been really cool if it also matched the tabbing of the other members, but that's just a nicety.
I'm in Visual Studio 2005.
Cheers,
Ian