Skip to content

Commit

Permalink
Followup cd5642a: Add dialog title, connect dialog ok/cancel buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Apr 29, 2019
1 parent cd5642a commit da01137
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/symbology/qgsdashspacedialog.cpp
Expand Up @@ -95,8 +95,11 @@ QgsDashSpaceDialog::QgsDashSpaceDialog( const QVector<qreal> &v, QWidget *parent
mWidget = new QgsDashSpaceWidget( v );
vLayout->addWidget( mWidget );
QDialogButtonBox *bbox = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal );
connect( bbox, &QDialogButtonBox::accepted, this, &QgsDashSpaceDialog::accept );
connect( bbox, &QDialogButtonBox::rejected, this, &QgsDashSpaceDialog::reject );
vLayout->addWidget( bbox );
setLayout( vLayout );
setWindowTitle( tr( "Custom Dash Pattern" ) );
}

QVector<qreal> QgsDashSpaceDialog::dashDotVector() const
Expand Down

0 comments on commit da01137

Please sign in to comment.