[Marble-devel] Review Request: Make online menu use a renderType() function rather than a cast check

Wes Hardaker wjhns25 at hardakers.net
Mon Jun 21 20:28:27 CEST 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/4410/
-----------------------------------------------------------

(Updated 2010-06-21 18:28:27.302695)


Review request for marble.


Changes
-------

removed another unneeded cast from the QtMain file.  (the kde counterpart already had it removed).


Summary
-------

This patch adds a renderType() function for determining the type of plugin it is and where the action() should be placed (eg, in the online menu).  Previously it was using a cast check and thus limited the types of actions that can be placed into the online menu to only things of a certain class tree.


Diffs (updated)
-----

  trunk/KDE/kdeedu/marble/src/QtMainWindow.cpp 1140837 
  trunk/KDE/kdeedu/marble/src/lib/AbstractDataPlugin.h 1140837 
  trunk/KDE/kdeedu/marble/src/lib/AbstractDataPlugin.cpp 1140837 
  trunk/KDE/kdeedu/marble/src/lib/RenderPlugin.h 1140837 
  trunk/KDE/kdeedu/marble/src/lib/RenderPlugin.cpp 1140837 
  trunk/KDE/kdeedu/marble/src/marble_part.cpp 1140837 

Diff: http://reviewboard.kde.org/r/4410/diff


Testing
-------

Not much, since current SVN trunk crashes immediately on start up for me.  But it should be safe.


Thanks,

Wes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/marble-devel/attachments/20100621/2781779d/attachment-0001.htm 


More information about the Marble-devel mailing list