17#include "moc_qgssymbolanimationsettingswidget.cpp"
20#include <QDialogButtonBox>
27 mFrameRateSpin->setClearValue( 10 );
28 mFrameRateSpin->setShowClearButton(
true );
30 connect( mFrameRateSpin, qOverload< double >( &QDoubleSpinBox::valueChanged ),
this, [
this ]
35 connect( mIsAnimatedGroup, &QGroupBox::toggled,
this, [
this ]
45 mIsAnimatedGroup->setChecked( settings.
isAnimated() );
46 mFrameRateSpin->setValue( settings.
frameRate() );
47 mBlockUpdates =
false;
64 : QDialog( parent, f )
66 QVBoxLayout *vLayout =
new QVBoxLayout();
68 vLayout->addWidget( mWidget );
69 QDialogButtonBox *bbox =
new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal );
70 connect( bbox, &QDialogButtonBox::accepted,
this, &QgsSymbolAnimationSettingsDialog::accept );
71 connect( bbox, &QDialogButtonBox::rejected,
this, &QgsSymbolAnimationSettingsDialog::reject );
72 vLayout->addWidget( bbox );
74 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).