Skip to content

Commit

Permalink
Animation Spin Box values from to constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
jowin202 committed Dec 19, 2023
1 parent d37cc9a commit 88b9726
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenSprite.pro.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 6.0.2, 2023-01-14T21:44:05. -->
<!-- Written by QtCreator 6.0.2, 2023-12-11T12:46:06. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
Expand Down Expand Up @@ -203,7 +203,7 @@
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/home/johannes/qt/build-OpenSprite-Desktop-debug</value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/home/johannes/qt/build-OpenSprite-Desktop-debug/build/debug</value>
</valuemap>
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
Expand Down
16 changes: 16 additions & 0 deletions animations/animationform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,19 @@ void AnimationForm::on_button_play_clicked()




void AnimationForm::on_spin_from_valueChanged(int arg1)
{
Q_UNUSED(arg1);
if (this->ui->spin_to->value() < this->ui->spin_from->value())
this->ui->spin_to->setValue(this->ui->spin_from->value());
}


void AnimationForm::on_spin_to_valueChanged(int arg1)
{
Q_UNUSED(arg1);
if (this->ui->spin_to->value() < this->ui->spin_from->value())
this->ui->spin_from->setValue(this->ui->spin_to->value());
}

4 changes: 4 additions & 0 deletions animations/animationform.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ private slots:
void on_button_delete_clicked();
void on_button_play_clicked();

void on_spin_from_valueChanged(int arg1);

void on_spin_to_valueChanged(int arg1);

private:
Ui::AnimationForm *ui;
options *opt;
Expand Down

0 comments on commit 88b9726

Please sign in to comment.