Skip to content
Permalink
Browse files

Add Cancel button to "Size Legend" dialog

because it's easier than hitting the cross button if you want to leave the dialog
  • Loading branch information
DelazJ committed Nov 26, 2017
1 parent 9956864 commit a4cf840d5c9b7183f4c885d355be874a29c6dd15
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgsdiagramproperties.cpp
@@ -1039,9 +1039,10 @@ void QgsDiagramProperties::showSizeLegendDialog()
dlg.setLayout( new QVBoxLayout() );
dlg.setWindowTitle( panel->panelTitle() );
dlg.layout()->addWidget( panel );
QDialogButtonBox *buttonBox = new QDialogButtonBox( QDialogButtonBox::Help | QDialogButtonBox::Ok );
QDialogButtonBox *buttonBox = new QDialogButtonBox( QDialogButtonBox::Cancel | QDialogButtonBox::Help | QDialogButtonBox::Ok );
connect( buttonBox, &QDialogButtonBox::accepted, &dlg, &QDialog::accept );
connect( buttonBox, &QDialogButtonBox::helpRequested, this, &QgsDiagramProperties::showHelp );
connect( buttonBox, &QDialogButtonBox::rejected, &dlg, &QDialog::reject );
dlg.layout()->addWidget( buttonBox );
if ( dlg.exec() )
mSizeLegend.reset( panel->dataDefinedSizeLegend() );

0 comments on commit a4cf840

Please sign in to comment.
You can’t perform that action at this time.