Formatting
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
|
||||
// winspool.h defines this :(
|
||||
#ifdef AddJob
|
||||
#undef AddJob
|
||||
# undef AddJob
|
||||
#endif
|
||||
|
||||
const char *TranscodeDialog::kSettingsGroup = "Transcoder";
|
||||
|
||||
@@ -65,7 +65,7 @@ class TranscodeDialog : public QDialog {
|
||||
void SetWorking(bool working);
|
||||
void UpdateStatusText();
|
||||
void UpdateProgress();
|
||||
static QString TrimPath(const QString &path) ;
|
||||
static QString TrimPath(const QString &path);
|
||||
QString GetOutputFileName(const QString &input, const TranscoderPreset &preset) const;
|
||||
|
||||
private slots:
|
||||
|
||||
@@ -199,8 +199,8 @@ void Transcoder::JobState::PostFinished(const bool success) {
|
||||
|
||||
Transcoder::Transcoder(QObject *parent, const QString &settings_postfix)
|
||||
: QObject(parent),
|
||||
max_threads_(QThread::idealThreadCount()),
|
||||
settings_postfix_(settings_postfix) {
|
||||
max_threads_(QThread::idealThreadCount()),
|
||||
settings_postfix_(settings_postfix) {
|
||||
|
||||
if (JobFinishedEvent::sEventType == -1)
|
||||
JobFinishedEvent::sEventType = QEvent::registerEventType();
|
||||
@@ -295,7 +295,7 @@ QString Transcoder::GetFile(const QString &input, const TranscoderPreset &preset
|
||||
QString temp_dir = QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + "/transcoder";
|
||||
if (!QDir(temp_dir).exists()) QDir().mkpath(temp_dir);
|
||||
QString filename = fileinfo_input.completeBaseName() + "." + preset.extension_;
|
||||
fileinfo_output.setFile(temp_dir + "/" + filename);
|
||||
fileinfo_output.setFile(temp_dir + "/" + filename);
|
||||
}
|
||||
|
||||
// Never overwrite existing files
|
||||
|
||||
@@ -39,7 +39,7 @@ class TranscoderOptionsAAC : public TranscoderOptionsInterface {
|
||||
void Load() override;
|
||||
void Save() override;
|
||||
|
||||
private:
|
||||
private:
|
||||
static const char *kSettingsGroup;
|
||||
|
||||
Ui_TranscoderOptionsAAC *ui_;
|
||||
|
||||
@@ -39,7 +39,7 @@ class TranscoderOptionsASF : public TranscoderOptionsInterface {
|
||||
void Load() override;
|
||||
void Save() override;
|
||||
|
||||
private:
|
||||
private:
|
||||
static const char *kSettingsGroup;
|
||||
|
||||
Ui_TranscoderOptionsASF *ui_;
|
||||
|
||||
Reference in New Issue
Block a user