KoTableColumnAndRowStyleManager Question.
C. Boemann
cbo at boemann.dk
Mon Feb 28 09:21:00 GMT 2011
On Monday 28 February 2011 10:00:15 Elvis Stansvik wrote:
> 2011/2/28 Ganesh Paramasivam <ganesh at crystalfab.com>:
> > Shouldn't the function return a reference or a pointer ? like this
> >
> > KoTableColumnAndRowStyleManager&
> > KoTableColumnAndRowStyleManager::getManager(QTextTable *table)
> >
> > If I were to set a row-style or a column-style for a table and do this
> > KoTableColumnAndRowStyleManager::getManager(table)->setRowStyle(0,
> > rowStyle) I would be setting these values on a copy of the return value
> > ( and not on the actual Manager ).
>
> Yes you would.
>
> Not sure, but I guess it works because KoTableColumnAndRowStyleManager
> is explicitly shared. I.e. all KoTableColumnAndRowStyleManager
> instances share the same data. Right Casper?
right, explicitly shared
More information about the calligra-devel
mailing list