forked from pencil2d/pencil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed class to follow convention. Clean up dialog.
- Loading branch information
1 parent
d49ba36
commit 09dd83f
Showing
6 changed files
with
96 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
#include "previewframesdialog.h" | ||
#include "ui_previewframesdialog.h" | ||
|
||
previewFramesDialog::previewFramesDialog(int maxFrame, int currentFrame) : | ||
PreviewFramesDialog::PreviewFramesDialog(int maxFrame, int currentFrame) : | ||
QDialog(), | ||
ui(new Ui::previewFramesDialog) | ||
ui(new Ui::PreviewFramesDialog) | ||
{ | ||
ui->setupUi(this); | ||
ui->frameSpinBox->setMinimum(1); | ||
ui->frameSpinBox->setMaximum(maxFrame); | ||
ui->frameSpinBox->setValue(currentFrame); | ||
connect(ui->frameSpinBox, QOverload<int>::of(&QSpinBox::valueChanged), this, &previewFramesDialog::frameChanged); | ||
|
||
setCurrentFrame(currentFrame); | ||
setMaxFrame(maxFrame); | ||
ui->labMaxNum->setText(QString::number(maxFrame)); | ||
connect(ui->frameSpinBox, QOverload<int>::of(&QSpinBox::valueChanged), this, &PreviewFramesDialog::frameChanged); | ||
} | ||
|
||
previewFramesDialog::~previewFramesDialog() | ||
PreviewFramesDialog::~PreviewFramesDialog() | ||
{ | ||
delete ui; | ||
} | ||
|
||
|
||
void previewFramesDialog::frameChanged(int frame) | ||
void PreviewFramesDialog::frameChanged(int frame) | ||
{ | ||
|
||
setCurrentFrame(frame); | ||
ui->labFrame->setText(QString::number(frame)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters