Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QPoint QStyle::visualPos ( Qt::LayoutDirection  direction,
const QRect boundingRectangle,
const QPoint logicalPosition 
) [static, inherited]

Returns the given logicalPosition converted to screen coordinates based on the specified direction. The boundingRectangle is used when performing the translation.

See also:

Definition at line 1930 of file qstyle.cpp.

References QRect::right(), QPoint::x(), and QPoint::y().

Referenced by QWindowsVistaStyle::drawControl(), QCleanlooksStyle::drawControl(), and QScrollArea::ensureVisible().

    if (direction == Qt::LeftToRight)
        return logicalPos;
    return QPoint(boundingRect.right() - logicalPos.x(), logicalPos.y());

Generated by  Doxygen 1.6.0   Back to index