Skip to content
Permalink
Browse files
Add help button to time animation export dialog
and add a missing tooltip
  • Loading branch information
DelazJ authored and github-actions committed Nov 5, 2021
1 parent effd0e1 commit 963f6a1f9b219700d86b5493d15c65d054f6a69b
Showing with 17 additions and 7 deletions.
  1. +6 −0 src/app/qgsanimationexportdialog.cpp
  2. +11 −7 src/ui/qgsanimationexportdialogbase.ui
@@ -19,6 +19,7 @@
#include "qgsmapcanvas.h"
#include "qgsdecorationitem.h"
#include "qgsexpressioncontextutils.h"
#include "qgshelp.h"
#include "qgstemporalnavigationobject.h"
#include "qgsprojecttimesettings.h"
#include "qgstemporalutils.h"
@@ -120,6 +121,11 @@ QgsAnimationExportDialog::QgsAnimationExportDialog( QWidget *parent, QgsMapCanva

connect( mSetToProjectTimeButton, &QPushButton::clicked, this, &QgsAnimationExportDialog::setToProjectTime );

connect( buttonBox, &QDialogButtonBox::helpRequested, this, [ = ]
{
QgsHelp::openHelp( QStringLiteral( "introduction/qgis_gui.html#time-based-control-on-the-map-canvas" ) );
} );

connect( buttonBox, &QDialogButtonBox::accepted, this, [ = ]
{
emit startExport();
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>600</width>
<height>629</height>
<height>456</height>
</rect>
</property>
<property name="windowTitle">
@@ -75,6 +75,9 @@
</item>
<item row="0" column="5">
<widget class="QToolButton" name="mSetToProjectTimeButton">
<property name="toolTip">
<string>Set to the project fixed time extent or the extent from the project's layers</string>
</property>
<property name="text">
<string/>
</property>
@@ -256,7 +259,7 @@
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set>
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Save</set>
</property>
</widget>
</item>
@@ -273,13 +276,19 @@
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsExtentGroupBox</class>
<extends>QgsCollapsibleGroupBox</extends>
<header>qgsextentgroupbox.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsDoubleSpinBox</class>
<extends>QDoubleSpinBox</extends>
<header>qgsdoublespinbox.h</header>
</customwidget>
<customwidget>
<class>QgsRatioLockButton</class>
<extends>QToolButton</extends>
@@ -292,11 +301,6 @@
<header>qgsfilewidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsDoubleSpinBox</class>
<extends>QDoubleSpinBox</extends>
<header>qgsdoublespinbox.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>mTemplateLineEdit</tabstop>

0 comments on commit 963f6a1

Please sign in to comment.