Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[3d][ui] Display Help button on the 3D configuration dialog
  • Loading branch information
DelazJ authored and nirvn committed Sep 12, 2019
1 parent f8afaf0 commit b40689f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/3d/qgs3dmapcanvasdockwidget.cpp
Expand Up @@ -27,6 +27,7 @@
#include "qgs3dmapconfigwidget.h"
#include "qgs3dmapscene.h"
#include "qgscameracontroller.h"
#include "qgshelp.h"
#include "qgsmapcanvas.h"
#include "qgsmessagebar.h"
#include "qgsapplication.h"
Expand Down Expand Up @@ -181,9 +182,10 @@ void Qgs3DMapCanvasDockWidget::configure()

Qgs3DMapSettings *map = mCanvas->map();
Qgs3DMapConfigWidget *w = new Qgs3DMapConfigWidget( map, mMainCanvas, &dlg );
QDialogButtonBox *buttons = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel, &dlg );
QDialogButtonBox *buttons = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help, &dlg );
connect( buttons, &QDialogButtonBox::accepted, &dlg, &QDialog::accept );
connect( buttons, &QDialogButtonBox::rejected, &dlg, &QDialog::reject );
connect( buttons, &QDialogButtonBox::helpRequested, w, []() { QgsHelp::openHelp( QStringLiteral( "introduction/qgis_gui.html#d-map-view" ) ); } );

QVBoxLayout *layout = new QVBoxLayout( &dlg );
layout->addWidget( w, 1 );
Expand Down

0 comments on commit b40689f

Please sign in to comment.