Changeset View
Changeset View
Standalone View
Standalone View
kmplot/parameteranimator.cpp
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 58 | ParameterAnimator::ParameterAnimator( QWidget * parent, Function * function ) | |||
---|---|---|---|---|---|
59 | : QDialog( parent ), | 59 | : QDialog( parent ), | ||
60 | m_function( function ) | 60 | m_function( function ) | ||
61 | { | 61 | { | ||
62 | m_widget = new ParameterAnimatorWidget( this ); | 62 | m_widget = new ParameterAnimatorWidget( this ); | ||
63 | 63 | | |||
64 | setWindowTitle( i18n("Parameter Animator") ); | 64 | setWindowTitle( i18n("Parameter Animator") ); | ||
65 | QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close); | 65 | QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close); | ||
66 | connect(buttonBox, &QDialogButtonBox::rejected, this, &ParameterAnimator::reject); | 66 | connect(buttonBox, &QDialogButtonBox::rejected, this, &ParameterAnimator::reject); | ||
67 | m_widget->layout()->addWidget(buttonBox); | 67 | | ||
68 | QVBoxLayout *dialogLayout = new QVBoxLayout( this ); | ||||
69 | dialogLayout->addWidget(m_widget); | ||||
70 | dialogLayout->addWidget(buttonBox); | ||||
68 | 71 | | |||
69 | m_mode = Paused; | 72 | m_mode = Paused; | ||
70 | m_currentValue = 0; | 73 | m_currentValue = 0; | ||
71 | m_function->m_parameters.animating = true; | 74 | m_function->m_parameters.animating = true; | ||
72 | m_function->k = m_currentValue; | 75 | m_function->k = m_currentValue; | ||
73 | 76 | | |||
74 | if ( function->eq[0]->usesParameter() ) | 77 | if ( function->eq[0]->usesParameter() ) | ||
75 | m_widget->warningLabel->hide(); | 78 | m_widget->warningLabel->hide(); | ||
▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines |