Apply clang-tidy
This commit is contained in:
parent
86e97a0d43
commit
677644a17a
|
@ -125,7 +125,7 @@ QVariant SyncthingRecentChangesModel::data(const QModelIndex &index, int role) c
|
|||
}
|
||||
break;
|
||||
case Action:
|
||||
return change.fileChange.action;
|
||||
return change.fileChange.action;
|
||||
case ModifiedBy:
|
||||
return change.fileChange.modifiedBy;
|
||||
case DirectoryId:
|
||||
|
|
|
@ -234,8 +234,7 @@ void restore()
|
|||
= settings.value(QStringLiteral("errorsPollInterval"), connectionSettings->errorsPollInterval).toInt();
|
||||
connectionSettings->reconnectInterval
|
||||
= settings.value(QStringLiteral("reconnectInterval"), connectionSettings->reconnectInterval).toInt();
|
||||
connectionSettings->autoConnect
|
||||
= settings.value(QStringLiteral("autoConnect"), connectionSettings->autoConnect).toBool();
|
||||
connectionSettings->autoConnect = settings.value(QStringLiteral("autoConnect"), connectionSettings->autoConnect).toBool();
|
||||
connectionSettings->httpsCertPath = settings.value(QStringLiteral("httpsCertPath")).toString();
|
||||
if (!connectionSettings->loadHttpsCert()) {
|
||||
QMessageBox::critical(nullptr, QCoreApplication::applicationName(),
|
||||
|
@ -283,7 +282,8 @@ void restore()
|
|||
launcher.autostartEnabled = settings.value(QStringLiteral("syncthingAutostart"), launcher.autostartEnabled).toBool();
|
||||
launcher.useLibSyncthing = settings.value(QStringLiteral("useLibSyncthing"), launcher.useLibSyncthing).toBool();
|
||||
launcher.libSyncthing.configDir = settings.value(QStringLiteral("libSyncthingConfigDir"), launcher.libSyncthing.configDir).toString();
|
||||
launcher.libSyncthing.logLevel = static_cast<LibSyncthing::LogLevel>(settings.value(QStringLiteral("libSyncthingLogLevel"), static_cast<int>(launcher.libSyncthing.logLevel)).toInt());
|
||||
launcher.libSyncthing.logLevel = static_cast<LibSyncthing::LogLevel>(
|
||||
settings.value(QStringLiteral("libSyncthingLogLevel"), static_cast<int>(launcher.libSyncthing.logLevel)).toInt());
|
||||
launcher.syncthingPath = settings.value(QStringLiteral("syncthingPath"), launcher.syncthingPath).toString();
|
||||
launcher.syncthingArgs = settings.value(QStringLiteral("syncthingArgs"), launcher.syncthingArgs).toString();
|
||||
launcher.considerForReconnect = settings.value(QStringLiteral("considerLauncherForReconnect"), launcher.considerForReconnect).toBool();
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
#define SETTINGS_H
|
||||
|
||||
#include "../../connector/syncthingconnectionsettings.h"
|
||||
#include "../../model/syncthingicons.h"
|
||||
#include "../../libsyncthing/interface.h"
|
||||
#include "../../model/syncthingicons.h"
|
||||
#include "../global.h"
|
||||
|
||||
#include <qtutilities/settingsdialog/qtsettings.h>
|
||||
|
|
|
@ -914,7 +914,8 @@ QWidget *LauncherOptionPage::setupWidget()
|
|||
connect(m_launcher, &SyncthingLauncher::outputAvailable, this, &LauncherOptionPage::handleSyncthingOutputAvailable, Qt::QueuedConnection);
|
||||
connect(m_launcher, &SyncthingLauncher::exited, this, &LauncherOptionPage::handleSyncthingExited, Qt::QueuedConnection);
|
||||
connect(m_launcher, &SyncthingLauncher::errorOccurred, this, &LauncherOptionPage::handleSyncthingError, Qt::QueuedConnection);
|
||||
connect(ui()->logLevelComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &LauncherOptionPage::updateLibSyncthingLogLevel);
|
||||
connect(ui()->logLevelComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
|
||||
&LauncherOptionPage::updateLibSyncthingLogLevel);
|
||||
m_launcher->setEmittingOutput(true);
|
||||
}
|
||||
connect(ui()->launchNowPushButton, &QPushButton::clicked, this, &LauncherOptionPage::launch);
|
||||
|
|
Loading…
Reference in New Issue