pub fn source(&self) -> Option<Object> {
        let (obj_data, funcs) = self.get_drop_event_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).source)(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 = Object::new_from_rc(t);
            } else {
                ret_val = Object::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
///
/// If the source of the drag operation is a widget in this
/// application, this function returns that source; otherwise it
/// returns 0. The source of the operation is the first parameter to
/// the QDrag object used instantiate the drag.
///
/// This is useful if your widget needs special behavior when dragging
/// to itself.
///
/// **See also:** [`Drag::q_drag`]
If the source of the drag operation is a widget in this
application, this function returns that source; otherwise it
returns 0. The source of the operation is the first parameter to
the QDrag object used instantiate the drag.

This is useful if your widget needs special behavior when dragging
to itself.


If the source of the drag operation is a widget in this application this function returns that source ; otherwise it returns 0 . The source of the operation is the first parameter to the QDrag object used instantiate the drag . This is useful if your widget needs special behavior when dragging to itself .
pub fn source(&self) -> Option<Object> {
        let (obj_data, funcs) = self.get_drop_event_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).source)(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 = Object::new_from_rc(t);
            } else {
                ret_val = Object::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
pub fn source ( & self ) -> Option < Object > { let ( obj_data , funcs ) = self . get_drop_event_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . source ) ( 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 = Object :: new_from_rc ( t ) ; } else { ret_val = Object :: new_from_owned ( t ) ; } Some ( ret_val ) } }
If the source of the drag operation is a widget in this
application, this function returns that source; otherwise it
returns 0.
If the source of the drag operation is a widget in this application this function returns that source ; otherwise it returns 0 .
&self
&self