from PySide import QtCore, QtGui
import shiboken
Signal = QtCore.Signal

def _getcls(name):
    result = getattr(QtGui, name, None)
    if result is None:
        result = getattr(QtCore, name, None)
    return result

def wrapinstance(ptr):
    '''
    converts a pointer ( int or long ) into the concrete PyQt/PySide object it represents
    '''
    ptr = long(ptr)
    qobj = shiboken.wrapInstance(ptr, QtCore.QObject)
    metaobj = qobj.metaObject()
    realcls = None
    while realcls is None:
        realcls = _getcls(metaobj.className())
        metaobj = metaobj.superClass()
    return shiboken.wrapInstance(ptr, realcls)

8f616e7f9f1b44138c80f05b48314d8b9573e745
<mask token>


def wrapinstance(ptr):
    """
    converts a pointer ( int or long ) into the concrete PyQt/PySide object it represents
    """
    ptr = long(ptr)
    qobj = shiboken.wrapInstance(ptr, QtCore.QObject)
    metaobj = qobj.metaObject()
    realcls = None
    while realcls is None:
        realcls = _getcls(metaobj.className())
        metaobj = metaobj.superClass()
    return shiboken.wrapInstance(ptr, realcls)

<mask token>


def _getcls(name):
    result = getattr(QtGui, name, None)
    if result is None:
        result = getattr(QtCore, name, None)
    return result


def wrapinstance(ptr):
    """
    converts a pointer ( int or long ) into the concrete PyQt/PySide object it represents
    """
    ptr = long(ptr)
    qobj = shiboken.wrapInstance(ptr, QtCore.QObject)
    metaobj = qobj.metaObject()
    realcls = None
    while realcls is None:
        realcls = _getcls(metaobj.className())
        metaobj = metaobj.superClass()
    return shiboken.wrapInstance(ptr, realcls)

<mask token>
Signal = QtCore.Signal


def _getcls(name):
    result = getattr(QtGui, name, None)
    if result is None:
        result = getattr(QtCore, name, None)
    return result


def wrapinstance(ptr):
    """
    converts a pointer ( int or long ) into the concrete PyQt/PySide object it represents
    """
    ptr = long(ptr)
    qobj = shiboken.wrapInstance(ptr, QtCore.QObject)
    metaobj = qobj.metaObject()
    realcls = None
    while realcls is None:
        realcls = _getcls(metaobj.className())
        metaobj = metaobj.superClass()
    return shiboken.wrapInstance(ptr, realcls)

from PySide import QtCore, QtGui
import shiboken
Signal = QtCore.Signal


def _getcls(name):
    result = getattr(QtGui, name, None)
    if result is None:
        result = getattr(QtCore, name, None)
    return result


def wrapinstance(ptr):
    """
    converts a pointer ( int or long ) into the concrete PyQt/PySide object it represents
    """
    ptr = long(ptr)
    qobj = shiboken.wrapInstance(ptr, QtCore.QObject)
    metaobj = qobj.metaObject()
    realcls = None
    while realcls is None:
        realcls = _getcls(metaobj.className())
        metaobj = metaobj.superClass()
    return shiboken.wrapInstance(ptr, realcls)

from PySide import QtCore, QtGui
import shiboken
Signal = QtCore.Signal

def _getcls(name):
    result = getattr(QtGui, name, None)
    if result is None:
        result = getattr(QtCore, name, None)
    return result

def wrapinstance(ptr):
    '''
    converts a pointer ( int or long ) into the concrete PyQt/PySide object it represents
    '''
    ptr = long(ptr)
    qobj = shiboken.wrapInstance(ptr, QtCore.QObject)
    metaobj = qobj.metaObject()
    realcls = None
    while realcls is None:
        realcls = _getcls(metaobj.className())
        metaobj = metaobj.superClass()
    return shiboken.wrapInstance(ptr, realcls)
