mirror of
https://github.com/vale981/Taevitas
synced 2025-03-04 17:11:40 -05:00
Test show Err.
This commit is contained in:
parent
a691550d06
commit
4b4060e9e1
4 changed files with 8 additions and 11 deletions
|
@ -170,7 +170,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QSpinBox" name="fps_box">
|
||||
<widget class="QDoubleSpinBox" name="fps_box">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -178,7 +178,7 @@
|
|||
</sizepolicy>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>18</number>
|
||||
<double>18.000000000000000</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -119,11 +119,6 @@ MainWindow::MainWindow( QWidget * parent ) :
|
|||
// Start recording
|
||||
connect( ui->startButton, &QPushButton::clicked, this, &MainWindow::startStopRecording );
|
||||
|
||||
// SelectFps
|
||||
connect( ui->fps_box, &QSpinBox::valueChanged, this, [this] ( int fps ) {
|
||||
recorder.setFrameRate( fps );
|
||||
} );
|
||||
|
||||
// Enable Preset Start
|
||||
enableStart();
|
||||
}
|
||||
|
@ -298,6 +293,8 @@ void MainWindow::startStopRecording() {
|
|||
// NOTE: UNCRITICAL Maybe allow dynamic setting...
|
||||
ui->saveFrames->setProperty( "enabled", false );
|
||||
|
||||
recorder.setFrameRate( ui->fps_box->value() );
|
||||
|
||||
// NOTE: That is ugly. Maybe I should wrap it into my own Error/Exception Class!
|
||||
try {
|
||||
recorder.newRecording( ui->projectName->text() );
|
||||
|
|
|
@ -93,7 +93,7 @@ class Recorder : public QObject {
|
|||
return options.frameRate;
|
||||
}
|
||||
|
||||
void setFrameRate( unsigned int frame_rate ) {
|
||||
void setFrameRate( float frame_rate ) {
|
||||
options.frameRate = frame_rate;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <QtWidgets/QButtonGroup>
|
||||
#include <QtWidgets/QCheckBox>
|
||||
#include <QtWidgets/QComboBox>
|
||||
#include <QtWidgets/QDoubleSpinBox>
|
||||
#include <QtWidgets/QFormLayout>
|
||||
#include <QtWidgets/QGridLayout>
|
||||
#include <QtWidgets/QGroupBox>
|
||||
|
@ -26,7 +27,6 @@
|
|||
#include <QtWidgets/QPlainTextEdit>
|
||||
#include <QtWidgets/QPushButton>
|
||||
#include <QtWidgets/QSpacerItem>
|
||||
#include <QtWidgets/QSpinBox>
|
||||
#include <QtWidgets/QVBoxLayout>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
|
@ -54,7 +54,7 @@ public:
|
|||
QLineEdit *projectName;
|
||||
QFormLayout *formLayout_2;
|
||||
QLabel *label_2;
|
||||
QSpinBox *fps_box;
|
||||
QDoubleSpinBox *fps_box;
|
||||
QCheckBox *saveFrames;
|
||||
QPushButton *startButton;
|
||||
QPushButton *preview_button;
|
||||
|
@ -195,7 +195,7 @@ public:
|
|||
|
||||
formLayout_2->setWidget(0, QFormLayout::LabelRole, label_2);
|
||||
|
||||
fps_box = new QSpinBox(recOptions);
|
||||
fps_box = new QDoubleSpinBox(recOptions);
|
||||
fps_box->setObjectName(QStringLiteral("fps_box"));
|
||||
QSizePolicy sizePolicy4(QSizePolicy::Minimum, QSizePolicy::Preferred);
|
||||
sizePolicy4.setHorizontalStretch(0);
|
||||
|
|
Loading…
Add table
Reference in a new issue