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

static Qt::PenStyle RS2::rsToQtLineType ( RS2::LineType  t  )  [inline, static]

Wrapper for Qt

Definition at line 649 of file rs.h.

References BorderLine, BorderLine2, BorderLineX2, CenterLine, CenterLine2, CenterLineX2, DashDotLine, DashDotLine2, DashDotLineX2, DashLine, DashLine2, DashLineX2, DivideLine, DivideLine2, DivideLineX2, DotLine, DotLine2, DotLineX2, LineByBlock, LineByLayer, NoPen, and SolidLine.

                                                    {
        switch (t) {
        case NoPen:
            return Qt::NoPen;
            break;
        case SolidLine:
            return Qt::SolidLine;
            break;
        case DotLine:
        case DotLine2:
        case DotLineX2:
            return Qt::DotLine;
            break;
        case DashLine:
        case DashLine2:
        case DashLineX2:
            return Qt::DashLine;
            break;
        case DashDotLine:
        case DashDotLine2:
        case DashDotLineX2:
            return Qt::DashDotLine;
            break;
        case DivideLine:
        case DivideLine2:
        case DivideLineX2:
            return Qt::DashDotDotLine;
            break;
        case CenterLine:
        case CenterLine2:
        case CenterLineX2:
            return Qt::DashDotLine;
            break;
        case BorderLine:
        case BorderLine2:
        case BorderLineX2:
            return Qt::DashDotLine;
            break;
        case LineByLayer:
        case LineByBlock:
        default:
            return Qt::SolidLine;
            break;
        }
        return Qt::SolidLine;
    }


Generated by  Doxygen 1.6.0   Back to index