Skip to content

Commit

Permalink
Apply clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatherly committed Feb 27, 2025
1 parent f3b648f commit 0d61f73
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
6 changes: 3 additions & 3 deletions src/docks/encodedock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1329,9 +1329,9 @@ MeltJob *EncodeDock::createMeltJob(Mlt::Producer *service,
return nullptr;

if (JOBS.targetIsInProgress(target)) {
QMessageBox::warning(this, windowTitle(),
QObject::tr("A job already exists for %1")
.arg(target));
QMessageBox::warning(this,
windowTitle(),
QObject::tr("A job already exists for %1").arg(target));
return nullptr;
}

Expand Down
15 changes: 3 additions & 12 deletions src/jobs/abstractjob.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ class AbstractJob : public QProcess
QStandardItem *standardItem();
bool ran() const;
bool stopped() const;
bool isFinished() const
{
return (ran() && state() != QProcess::Running);
}
bool isFinished() const { return (ran() && state() != QProcess::Running); }
void appendToLog(const QString &);
QString log() const;
QString label() const { return m_label; }
Expand All @@ -55,14 +52,8 @@ class AbstractJob : public QProcess
QElapsedTimer time() const { return m_totalTime; }
void setPostJobAction(PostJobAction *action);
bool paused() const;
void setTarget(const QString & target)
{
m_target = target;
}
QString target()
{
return m_target;
}
void setTarget(const QString &target) { m_target = target; }
QString target() { return m_target; }

public slots:
void start(const QString &program, const QStringList &arguments);
Expand Down
12 changes: 6 additions & 6 deletions src/widgets/avformatproducerwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1057,9 +1057,9 @@ void AvformatProducerWidget::on_reverseButton_clicked()
return;
}
if (JOBS.targetIsInProgress(filename)) {
QMessageBox::warning(this, dialog.windowTitle(),
QObject::tr("A job already exists for %1")
.arg(filename));
QMessageBox::warning(this,
dialog.windowTitle(),
QObject::tr("A job already exists for %1").arg(filename));
return;
}
if (Util::warnIfNotWritable(filename, this, dialog.windowTitle()))
Expand Down Expand Up @@ -1149,9 +1149,9 @@ void AvformatProducerWidget::on_actionExtractSubclip_triggered()
return;
}
if (JOBS.targetIsInProgress(filename)) {
QMessageBox::warning(this, caption,
QObject::tr("A job already exists for %1")
.arg(filename));
QMessageBox::warning(this,
caption,
QObject::tr("A job already exists for %1").arg(filename));
return;
}
if (Util::warnIfNotWritable(filename, this, caption))
Expand Down

0 comments on commit 0d61f73

Please sign in to comment.