Logo Search packages:      
Sourcecode: qcad version File versions  Download package

static RS2::LineType RS2::qtToRsPenStyle ( Qt::PenStyle  s  )  [inline, static]

Wrapper for Qt.

Definition at line 699 of file rs.h.

References DashDotLine, DashLine, DivideLine, DotLine, NoPen, and SolidLine.

                                                    {
        switch (s) {
        case Qt::NoPen:
            return NoPen;
        case Qt::SolidLine:
            return SolidLine;
            break;
        case Qt::DashLine:
            return DashLine;
            break;
        case Qt::DotLine:
            return DotLine;
            break;
        case Qt::DashDotLine:
            return DashDotLine;
            break;
        case Qt::DashDotDotLine:
            return DivideLine;
            break;
        default:
            return SolidLine;
            break;
        }
        return SolidLine;
    }


Generated by  Doxygen 1.6.0   Back to index