19#include <QDialogButtonBox>
26 mFrameRateSpin->setClearValue( 10 );
27 mFrameRateSpin->setShowClearButton(
true );
29 connect( mFrameRateSpin, qOverload< double >( &QDoubleSpinBox::valueChanged ),
this, [
this ]
34 connect( mIsAnimatedGroup, &QGroupBox::toggled,
this, [
this ]
44 mIsAnimatedGroup->setChecked( settings.
isAnimated() );
45 mFrameRateSpin->setValue( settings.
frameRate() );
46 mBlockUpdates =
false;
63 : QDialog( parent, f )
65 QVBoxLayout *vLayout =
new QVBoxLayout();
67 vLayout->addWidget( mWidget );
68 QDialogButtonBox *bbox =
new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal );
69 connect( bbox, &QDialogButtonBox::accepted,
this, &QgsSymbolAnimationSettingsDialog::accept );
70 connect( bbox, &QDialogButtonBox::rejected,
this, &QgsSymbolAnimationSettingsDialog::reject );
71 vLayout->addWidget( bbox );
73 setWindowTitle( tr(
"Animation Settings" ) );
void setAnimationSettings(const QgsSymbolAnimationSettings &settings)
Sets the animation settings to show in the dialog.
QgsSymbolAnimationSettingsDialog(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
Constructor for QgsSymbolAnimationSettingsDialog.
QgsSymbolAnimationSettings animationSettings() const
Returns the animation settings as defined in the dialog.
Contains settings relating to symbol animation.
bool isAnimated() const
Returns true if the symbol is animated.
void setIsAnimated(bool animated)
Sets whether the symbol is animated.
void setFrameRate(double rate)
Sets the symbol animation frame rate (in frames per second).
double frameRate() const
Returns the symbol animation frame rate (in frames per second).