mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Basic shape add new CustomDashLine style with
Dash Pattern (<< 10 << 10 ); git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5194 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -109,6 +109,12 @@ QUndoCommand* ShapeGraphicsItemPropertiesWidget::associatedUndo() const
|
||||
|
||||
new_pen.setStyle(Qt::PenStyle(ui->m_style_cb->currentIndex() + 1));
|
||||
new_pen.setWidthF(ui->m_size_dsb->value());
|
||||
|
||||
if (ui->m_style_cb->currentIndex() ==5) {
|
||||
new_pen.setDashPattern( QVector<qreal>() << 10 << 10 );
|
||||
new_pen.setStyle( Qt::CustomDashLine );
|
||||
}
|
||||
//painter.setPen( new_pen );
|
||||
new_pen.setColor(ui->m_color_pb->palette().color(QPalette::Button));
|
||||
|
||||
if (new_pen != old_pen)
|
||||
|
||||
Reference in New Issue
Block a user