Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
+1
-1
@@ -50,7 +50,7 @@ bool ScreenRecordingDialog::init(LtsSession::LtsSession *session)
|
||||
|
||||
if (m_baseLayoutPtr == nullptr)
|
||||
{
|
||||
ERROR_LOG() << "base layout is nullptr";
|
||||
ERROR_LOG(m_logger) << "base layout is nullptr";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
+1
@@ -78,6 +78,7 @@ private slots:
|
||||
|
||||
|
||||
private:
|
||||
NGL::INGLLogger &m_logger;
|
||||
Ui::ScreenRecordingDialog *m_ui{nullptr};
|
||||
LtsWidgets::LtsBaseLayoutWidget *m_baseLayoutPtr{nullptr};
|
||||
QWidget *m_recAreaWidget{nullptr};
|
||||
|
||||
+7
-7
@@ -188,7 +188,7 @@ bool ScreenRecordingWorker::takeScreenshot(const QFileInfo &fileInfo, LtsWidgets
|
||||
{
|
||||
if (!s_imageFormats.contains(fileInfo.suffix()))
|
||||
{
|
||||
DEBUG_LOG() << "file format not supported (must be .jpg, .jpeg or .png)";
|
||||
DEBUG_LOG(m_logger) << "file format not supported (must be .jpg, .jpeg or .png)";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ bool ScreenRecordingWorker::takeScreenshot(const QFileInfo &fileInfo, LtsWidgets
|
||||
|
||||
if (!proc->waitForStarted())
|
||||
{
|
||||
ERROR_LOG() << QLatin1String("Could not start process '") + EXECUTABLE
|
||||
ERROR_LOG(m_logger) << QLatin1String("Could not start process '") + EXECUTABLE
|
||||
+ QLatin1String("' with arguments '") + args.join(QLatin1String("', '")) + QLatin1String("'\n");
|
||||
proc->deleteLater();
|
||||
return false;
|
||||
@@ -213,7 +213,7 @@ bool ScreenRecordingWorker::takeScreenshot(const QFileInfo &fileInfo, LtsWidgets
|
||||
|
||||
if (!proc->waitForFinished())
|
||||
{
|
||||
ERROR_LOG() << QLatin1String("Could not finish process '") + EXECUTABLE
|
||||
ERROR_LOG(m_logger) << QLatin1String("Could not finish process '") + EXECUTABLE
|
||||
+ QLatin1String("' with arguments '") + args.join(QLatin1String("', '")) + QLatin1String("'\n");
|
||||
proc->deleteLater();
|
||||
return false;
|
||||
@@ -226,7 +226,7 @@ bool ScreenRecordingWorker::stopRecording()
|
||||
{
|
||||
if (!m_isBusy)
|
||||
{
|
||||
DEBUG_LOG() << "no running process";
|
||||
DEBUG_LOG(m_logger) << "no running process";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -247,13 +247,13 @@ bool ScreenRecordingWorker::onStartRecording(const RecordingData &data)
|
||||
{
|
||||
if (m_isBusy)
|
||||
{
|
||||
DEBUG_LOG() << "process is already running";
|
||||
DEBUG_LOG(m_logger) << "process is already running";
|
||||
return false;
|
||||
}
|
||||
|
||||
if (data.filePath.suffix() != s_videoFormat)
|
||||
{
|
||||
DEBUG_LOG() << "file format not supported (must be .mp4)";
|
||||
DEBUG_LOG(m_logger) << "file format not supported (must be .mp4)";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -263,7 +263,7 @@ bool ScreenRecordingWorker::onStartRecording(const RecordingData &data)
|
||||
|
||||
if (!m_recProc->waitForStarted())
|
||||
{
|
||||
ERROR_LOG() << QLatin1String("Could not start process '") + EXECUTABLE
|
||||
ERROR_LOG(m_logger) << QLatin1String("Could not start process '") + EXECUTABLE
|
||||
+ QLatin1String("' with arguments '") + data.toStringList().join(QLatin1String("', '")) + QLatin1String("'\n");
|
||||
m_recProc->deleteLater();
|
||||
m_isBusy = false;
|
||||
|
||||
+1
@@ -102,6 +102,7 @@ public slots:
|
||||
|
||||
|
||||
private:
|
||||
NGL::INGLLogger &m_logger;
|
||||
QProcess *m_recProc{nullptr};
|
||||
bool m_isBusy{false};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user