Skip to content
Permalink
Browse files

Add a help link to 3d animation export dialog

  • Loading branch information
DelazJ authored and nyalldawson committed Apr 28, 2020
1 parent 696582c commit 68862f4ba95b59cc4d4a2be5308bf066817a41c2
Showing with 12 additions and 6 deletions.
  1. +6 −0 src/app/3d/qgs3danimationexportdialog.cpp
  2. +6 −6 src/ui/3d/animationexport3ddialog.ui
@@ -24,6 +24,7 @@
#include "qgs3dutils.h"
#include "qgscameracontroller.h"
#include "qgsspinbox.h"
#include "qgshelp.h"

#include <QtGlobal>

@@ -79,6 +80,11 @@ Qgs3DAnimationExportDialog::Qgs3DAnimationExportDialog(): QDialog( nullptr )
settings.setValue( QStringLiteral( "Export3DAnimation/height" ), mHeightSpinBox->value() );
} );

connect( mButtonBox, &QDialogButtonBox::helpRequested, this, [ = ]
{
QgsHelp::openHelp( QStringLiteral( "introduction/qgis_gui.html#creating-an-animation" ) );
} );

QgsGui::enableAutoGeometryRestore( this );
}

@@ -135,25 +135,25 @@
<item row="6" column="0" colspan="3">
<widget class="QDialogButtonBox" name="mButtonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
<customwidget>
<class>QgsFileWidget</class>
<extends>QWidget</extends>
<header>qgsfilewidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header location="global">qgsspinbox.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>mTemplateLineEdit</tabstop>

0 comments on commit 68862f4

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