

def _get_division_orientation(self, one, two, splitter=False):
    ' Returns whether there is a division between two visible QWidgets.\n\n        Divided in context means that the widgets are adjacent and aligned along\n        the direction of the adjaceny.\n        '
    united = one.united(two)
    if splitter:
        sep = self.control.style().pixelMetric(QtGui.QStyle.PM_DockWidgetSeparatorExtent, None, self.control)
        united.adjust(0, 0, (- sep), (- sep))
    if ((one.x() == two.x()) and (one.width() == two.width()) and (splitter.height() == (one.height() + two.height()))):
        return QtCore.Qt.Horizontal
    elif ((one.y() == two.y()) and (one.height() == two.height()) and (united.width() == (one.width() + two.width()))):
        return QtCore.Qt.Vertical
    return 0

dataset/ETHPy150Open enthought/pyface/pyface/ui/qt4/tasks/main_window_layout.py MainWindowLayout._get_division_orientation/VarMisuse@110/198 `united`->`splitter`