On Tue, Feb 14, 2012 at 1:17 PM, Matthew Gates <[email protected]> wrote:
> Do we need to un-register keyboard commands which have been registered
> with StelGui::addGuiActions(...)?  What will happen if we don't
> un-register them?

If there are signals still connected to them, they may get called,
with varying results. Also, they will be still listed in the Help
window.

As for memory management, actions added with addGuiActions() have
stelAppGraphicsWidget as their parent and will be deleted by its
destructor.
http://developer.qt.nokia.com/doc/qt-4.8/qobject.html#details

Regards,
Bogdan Marinov

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Stellarium-pubdevel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel

Reply via email to