///
/// Appends the action *action* to this widget's list of actions.
///
/// All QWidgets have a list of [QAction](QAction)
/// s, however they can be
/// represented graphically in many different ways. The default use of
/// the QAction list (as returned by actions()) is to create a context
/// QMenu.
///
/// A QWidget should only have one of each action and adding an action
/// it already has will not cause the same action to be in the widget twice.
///
/// The ownership of *action* is not transferred to this QWidget.
///
/// **See also:** [`remove_action()`]
/// [`insert_action()`]
/// [`actions()`]
/// [`Menu`]
///
/// Inserts the action *action* to this widget's list of actions,
/// before the action *before.* It appends the action if *before* is 0 or
/// *before* is not a valid action for this widget.
///
/// A QWidget should only have one of each action.
///
/// **See also:** [`remove_action()`]
/// [`add_action()`]
/// [`Menu`]
/// contextMenuPolicy
/// [`actions()`]
///
/// Removes the action *action* from this widget's list of actions.
/// **See also:** [`insert_action()`]
/// [`actions()`]
/// [`insert_action()`]
///
/// Returns the parent of this widget, or 0 if it does not have any
/// parent widget.
Appends the action *action* to this widget's list of actions.
All QWidgets have a list of [QAction](QAction)
s, however they can be
represented graphically in many different ways. The default use of
the QAction list (as returned by actions()) is to create a context
QMenu.

A QWidget should only have one of each action and adding an action
it already has will not cause the same action to be in the widget twice.

The ownership of *action* is not transferred to this QWidget.





A QWidget should only have one of each action.



Removes the action *action* from this widget's list of actions.

Returns the parent of this widget, or 0 if it does not have any
parent widget.
Appends the action * action * to this widget ' s list of actions . All QWidgets have a list of [ QAction ] ( QAction ) s however they can be represented graphically in many different ways . The default use of the QAction list ( as returned by actions () ) is to create a context QMenu . A QWidget should only have one of each action and adding an action it already has will not cause the same action to be in the widget twice . The ownership of * action * is not transferred to this QWidget . A QWidget should only have one of each action . Removes the action * action * from this widget ' s list of actions . Returns the parent of this widget or 0 if it does not have any parent widget .
pub fn parent_widget(&self) -> Option<Widget> {
        let (obj_data, funcs) = self.get_widget_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).parent_widget)(obj_data);
            if ret_val.qt_data == ::std::ptr::null() {
                return None;
            }
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Widget::new_from_rc(t);
            } else {
                ret_val = Widget::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
pub fn parent_widget ( & self ) -> Option < Widget > { let ( obj_data , funcs ) = self . get_widget_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . parent_widget ) ( obj_data ) ; if ret_val . qt_data == :: std :: ptr :: null ( ) { return None ; } let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Widget :: new_from_rc ( t ) ; } else { ret_val = Widget :: new_from_owned ( t ) ; } Some ( ret_val ) } }
Appends the action *action* to this widget's list of actions.
Appends the action * action * to this widget ' s list of actions .
&self