~agateau/libdbusmenu-qt/icon-data

« back to all changes in this revision

Viewing changes to src/dbusmenuexporterprivate_p.h

  • Committer: Aurelien Gateau
  • Date: 2010-09-02 15:01:47 UTC
  • Revision ID: aurelien.gateau@canonical.com-20100902150147-pkhmv1xi317jx2di
Do not keep dangling pointers to deleted actions (LP BUG #624964)

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
    void addAction(QAction *action, int parentId);
68
68
    void updateAction(QAction *action);
69
69
    void removeAction(QAction *action, int parentId);
 
70
    /**
 
71
     * Removes any reference from action in the exporter, but do not notify the
 
72
     * change outside. This is useful when a submenu is destroyed because we do
 
73
     * not receive QEvent::ActionRemoved events for its actions.
 
74
     * IMPORTANT: action might have already been destroyed when this method is
 
75
     * called, so don't dereference the pointer (it is a QObject to avoid being
 
76
     * tempted to dereference)
 
77
     */
 
78
    void removeActionInternal(QObject *action);
70
79
 
71
80
    void emitLayoutUpdated(int id);
72
81
};