|
@@ -32,6 +32,15 @@ OutputTimer::OutputTimer(QWidget *parent)
|
|
|
|
|
|
|
|
recordingTimer = new QTimer(this);
|
|
recordingTimer = new QTimer(this);
|
|
|
recordingTimerDisplay = new QTimer(this);
|
|
recordingTimerDisplay = new QTimer(this);
|
|
|
|
|
+
|
|
|
|
|
+ QObject::connect(streamingTimer, &QTimer::timeout, this,
|
|
|
|
|
+ &OutputTimer::EventStopStreaming);
|
|
|
|
|
+ QObject::connect(streamingTimerDisplay, &QTimer::timeout, this,
|
|
|
|
|
+ &OutputTimer::UpdateStreamTimerDisplay);
|
|
|
|
|
+ QObject::connect(recordingTimer, &QTimer::timeout, this,
|
|
|
|
|
+ &OutputTimer::EventStopRecording);
|
|
|
|
|
+ QObject::connect(recordingTimerDisplay, &QTimer::timeout, this,
|
|
|
|
|
+ &OutputTimer::UpdateRecordTimerDisplay);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void OutputTimer::closeEvent(QCloseEvent *)
|
|
void OutputTimer::closeEvent(QCloseEvent *)
|
|
@@ -86,12 +95,6 @@ void OutputTimer::StreamTimerStart()
|
|
|
streamingTimer->setInterval(total);
|
|
streamingTimer->setInterval(total);
|
|
|
streamingTimer->setSingleShot(true);
|
|
streamingTimer->setSingleShot(true);
|
|
|
|
|
|
|
|
- QObject::connect(streamingTimer, &QTimer::timeout, this,
|
|
|
|
|
- &OutputTimer::EventStopStreaming);
|
|
|
|
|
-
|
|
|
|
|
- QObject::connect(streamingTimerDisplay, &QTimer::timeout, this,
|
|
|
|
|
- &OutputTimer::UpdateStreamTimerDisplay);
|
|
|
|
|
-
|
|
|
|
|
streamingTimer->start();
|
|
streamingTimer->start();
|
|
|
streamingTimerDisplay->start(1000);
|
|
streamingTimerDisplay->start(1000);
|
|
|
ui->outputTimerStream->setText(obs_module_text("Stop"));
|
|
ui->outputTimerStream->setText(obs_module_text("Stop"));
|
|
@@ -120,12 +123,6 @@ void OutputTimer::RecordTimerStart()
|
|
|
recordingTimer->setInterval(total);
|
|
recordingTimer->setInterval(total);
|
|
|
recordingTimer->setSingleShot(true);
|
|
recordingTimer->setSingleShot(true);
|
|
|
|
|
|
|
|
- QObject::connect(recordingTimer, &QTimer::timeout, this,
|
|
|
|
|
- &OutputTimer::EventStopRecording);
|
|
|
|
|
-
|
|
|
|
|
- QObject::connect(recordingTimerDisplay, &QTimer::timeout, this,
|
|
|
|
|
- &OutputTimer::UpdateRecordTimerDisplay);
|
|
|
|
|
-
|
|
|
|
|
recordingTimer->start();
|
|
recordingTimer->start();
|
|
|
recordingTimerDisplay->start(1000);
|
|
recordingTimerDisplay->start(1000);
|
|
|
ui->outputTimerRecord->setText(obs_module_text("Stop"));
|
|
ui->outputTimerRecord->setText(obs_module_text("Stop"));
|