mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
clang-tidy: use = default (#7999)
This commit is contained in:
parent
e1fbed0e25
commit
52af8a5e2a
@ -25,9 +25,7 @@
|
|||||||
class AutoTypePlatformInterface
|
class AutoTypePlatformInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~AutoTypePlatformInterface()
|
virtual ~AutoTypePlatformInterface() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
virtual bool isAvailable() = 0;
|
virtual bool isAvailable() = 0;
|
||||||
virtual QStringList windowTitles() = 0;
|
virtual QStringList windowTitles() = 0;
|
||||||
virtual WId activeWindow() = 0;
|
virtual WId activeWindow() = 0;
|
||||||
|
@ -92,9 +92,7 @@ AutoTypeSelectDialog::AutoTypeSelectDialog(QWidget* parent)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Required for QScopedPointer
|
// Required for QScopedPointer
|
||||||
AutoTypeSelectDialog::~AutoTypeSelectDialog()
|
AutoTypeSelectDialog::~AutoTypeSelectDialog() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void AutoTypeSelectDialog::setMatches(const QList<AutoTypeMatch>& matches,
|
void AutoTypeSelectDialog::setMatches(const QList<AutoTypeMatch>& matches,
|
||||||
const QList<QSharedPointer<Database>>& dbs,
|
const QList<QSharedPointer<Database>>& dbs,
|
||||||
|
@ -23,9 +23,7 @@
|
|||||||
class AutoTypeTestInterface
|
class AutoTypeTestInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~AutoTypeTestInterface()
|
virtual ~AutoTypeTestInterface() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
virtual void setActiveWindowTitle(const QString& title) = 0;
|
virtual void setActiveWindowTitle(const QString& title) = 0;
|
||||||
|
|
||||||
virtual QString actionChars() = 0;
|
virtual QString actionChars() = 0;
|
||||||
|
@ -29,9 +29,7 @@ AddGroup::AddGroup()
|
|||||||
positionalArguments.append({QString("group"), QObject::tr("Path of the group to add."), QString("")});
|
positionalArguments.append({QString("group"), QObject::tr("Path of the group to add."), QString("")});
|
||||||
}
|
}
|
||||||
|
|
||||||
AddGroup::~AddGroup()
|
AddGroup::~AddGroup() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
int AddGroup::executeWithDatabase(QSharedPointer<Database> database, QSharedPointer<QCommandLineParser> parser)
|
int AddGroup::executeWithDatabase(QSharedPointer<Database> database, QSharedPointer<QCommandLineParser> parser)
|
||||||
{
|
{
|
||||||
|
@ -103,9 +103,7 @@ Command::Command()
|
|||||||
options.append(Command::QuietOption);
|
options.append(Command::QuietOption);
|
||||||
}
|
}
|
||||||
|
|
||||||
Command::~Command()
|
Command::~Command() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
QString Command::getDescriptionLine()
|
QString Command::getDescriptionLine()
|
||||||
{
|
{
|
||||||
|
@ -30,9 +30,7 @@ Move::Move()
|
|||||||
positionalArguments.append({QString("group"), QObject::tr("Path of the destination group."), QString("")});
|
positionalArguments.append({QString("group"), QObject::tr("Path of the destination group."), QString("")});
|
||||||
}
|
}
|
||||||
|
|
||||||
Move::~Move()
|
Move::~Move() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
int Move::executeWithDatabase(QSharedPointer<Database> database, QSharedPointer<QCommandLineParser> parser)
|
int Move::executeWithDatabase(QSharedPointer<Database> database, QSharedPointer<QCommandLineParser> parser)
|
||||||
{
|
{
|
||||||
|
@ -30,9 +30,7 @@ RemoveGroup::RemoveGroup()
|
|||||||
positionalArguments.append({QString("group"), QObject::tr("Path of the group to remove."), QString("")});
|
positionalArguments.append({QString("group"), QObject::tr("Path of the group to remove."), QString("")});
|
||||||
}
|
}
|
||||||
|
|
||||||
RemoveGroup::~RemoveGroup()
|
RemoveGroup::~RemoveGroup() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
int RemoveGroup::executeWithDatabase(QSharedPointer<Database> database, QSharedPointer<QCommandLineParser> parser)
|
int RemoveGroup::executeWithDatabase(QSharedPointer<Database> database, QSharedPointer<QCommandLineParser> parser)
|
||||||
{
|
{
|
||||||
|
@ -78,13 +78,9 @@ QDateTime Clock::parse(const QString& text, const QString& format)
|
|||||||
return QDateTime::fromString(text, format);
|
return QDateTime::fromString(text, format);
|
||||||
}
|
}
|
||||||
|
|
||||||
Clock::~Clock()
|
Clock::~Clock() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
Clock::Clock()
|
Clock::Clock() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
QDateTime Clock::currentDateTimeUtcImpl() const
|
QDateTime Clock::currentDateTimeUtcImpl() const
|
||||||
{
|
{
|
||||||
|
@ -454,9 +454,7 @@ Config::Config(QObject* parent)
|
|||||||
init(configFiles.first, configFiles.second);
|
init(configFiles.first, configFiles.second);
|
||||||
}
|
}
|
||||||
|
|
||||||
Config::~Config()
|
Config::~Config() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void Config::init(const QString& configFileName, const QString& localConfigFileName)
|
void Config::init(const QString& configFileName, const QString& localConfigFileName)
|
||||||
{
|
{
|
||||||
|
@ -19,9 +19,7 @@
|
|||||||
|
|
||||||
#include "core/Global.h"
|
#include "core/Global.h"
|
||||||
|
|
||||||
SignalMultiplexer::SignalMultiplexer()
|
SignalMultiplexer::SignalMultiplexer() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
SignalMultiplexer::~SignalMultiplexer()
|
SignalMultiplexer::~SignalMultiplexer()
|
||||||
{
|
{
|
||||||
|
@ -27,9 +27,7 @@ OpData01::OpData01(QObject* parent)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
OpData01::~OpData01()
|
OpData01::~OpData01() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool OpData01::decodeBase64(QString const& b64String, const QByteArray& key, const QByteArray& hmacKey)
|
bool OpData01::decodeBase64(QString const& b64String, const QByteArray& key, const QByteArray& hmacKey)
|
||||||
{
|
{
|
||||||
|
@ -35,9 +35,7 @@ OpVaultReader::OpVaultReader(QObject* parent)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
OpVaultReader::~OpVaultReader()
|
OpVaultReader::~OpVaultReader() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
Database* OpVaultReader::readDatabase(QDir& opdataDir, const QString& password)
|
Database* OpVaultReader::readDatabase(QDir& opdataDir, const QString& password)
|
||||||
{
|
{
|
||||||
|
@ -327,9 +327,7 @@ AboutDialog::AboutDialog(QWidget* parent)
|
|||||||
m_ui->buttonBox->button(QDialogButtonBox::Close)->setDefault(true);
|
m_ui->buttonBox->button(QDialogButtonBox::Close)->setDefault(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
AboutDialog::~AboutDialog()
|
AboutDialog::~AboutDialog() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void AboutDialog::copyToClipboard()
|
void AboutDialog::copyToClipboard()
|
||||||
{
|
{
|
||||||
|
@ -175,9 +175,7 @@ ApplicationSettingsWidget::ApplicationSettingsWidget(QWidget* parent)
|
|||||||
m_secUi->quickUnlockCheckBox->setVisible(showQuickUnlock);
|
m_secUi->quickUnlockCheckBox->setVisible(showQuickUnlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
ApplicationSettingsWidget::~ApplicationSettingsWidget()
|
ApplicationSettingsWidget::~ApplicationSettingsWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void ApplicationSettingsWidget::addSettingsPage(ISettingsPage* page)
|
void ApplicationSettingsWidget::addSettingsPage(ISettingsPage* page)
|
||||||
{
|
{
|
||||||
|
@ -30,9 +30,7 @@ namespace Ui
|
|||||||
class ISettingsPage
|
class ISettingsPage
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~ISettingsPage()
|
virtual ~ISettingsPage() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
virtual QString name() = 0;
|
virtual QString name() = 0;
|
||||||
virtual QIcon icon() = 0;
|
virtual QIcon icon() = 0;
|
||||||
virtual QWidget* createWidget() = 0;
|
virtual QWidget* createWidget() = 0;
|
||||||
|
@ -43,9 +43,7 @@ CategoryListWidget::CategoryListWidget(QWidget* parent)
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
}
|
}
|
||||||
|
|
||||||
CategoryListWidget::~CategoryListWidget()
|
CategoryListWidget::~CategoryListWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
QSize CategoryListWidget::sizeHint() const
|
QSize CategoryListWidget::sizeHint() const
|
||||||
{
|
{
|
||||||
|
@ -61,6 +61,4 @@ void CloneDialog::cloneEntry()
|
|||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
CloneDialog::~CloneDialog()
|
CloneDialog::~CloneDialog() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -141,9 +141,7 @@ DatabaseOpenWidget::DatabaseOpenWidget(QWidget* parent)
|
|||||||
connect(m_ui->resetQuickUnlockButton, &QPushButton::pressed, this, [this] { resetQuickUnlock(); });
|
connect(m_ui->resetQuickUnlockButton, &QPushButton::pressed, this, [this] { resetQuickUnlock(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
DatabaseOpenWidget::~DatabaseOpenWidget()
|
DatabaseOpenWidget::~DatabaseOpenWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void DatabaseOpenWidget::showEvent(QShowEvent* event)
|
void DatabaseOpenWidget::showEvent(QShowEvent* event)
|
||||||
{
|
{
|
||||||
|
@ -68,9 +68,7 @@ DatabaseTabWidget::DatabaseTabWidget(QWidget* parent)
|
|||||||
connect(&m_lockDelayTimer, &QTimer::timeout, this, [this] { lockDatabases(); });
|
connect(&m_lockDelayTimer, &QTimer::timeout, this, [this] { lockDatabases(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
DatabaseTabWidget::~DatabaseTabWidget()
|
DatabaseTabWidget::~DatabaseTabWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void DatabaseTabWidget::toggleTabbar()
|
void DatabaseTabWidget::toggleTabbar()
|
||||||
{
|
{
|
||||||
|
@ -36,9 +36,7 @@ DatabaseWidgetStateSync::DatabaseWidgetStateSync(QObject* parent)
|
|||||||
connect(qApp, &QCoreApplication::aboutToQuit, this, &DatabaseWidgetStateSync::sync);
|
connect(qApp, &QCoreApplication::aboutToQuit, this, &DatabaseWidgetStateSync::sync);
|
||||||
}
|
}
|
||||||
|
|
||||||
DatabaseWidgetStateSync::~DatabaseWidgetStateSync()
|
DatabaseWidgetStateSync::~DatabaseWidgetStateSync() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sync state with persistent storage.
|
* Sync state with persistent storage.
|
||||||
|
@ -45,9 +45,7 @@ EditWidget::EditWidget(QWidget* parent)
|
|||||||
connect(m_ui->buttonBox, SIGNAL(clicked(QAbstractButton*)), SLOT(buttonClicked(QAbstractButton*)));
|
connect(m_ui->buttonBox, SIGNAL(clicked(QAbstractButton*)), SLOT(buttonClicked(QAbstractButton*)));
|
||||||
}
|
}
|
||||||
|
|
||||||
EditWidget::~EditWidget()
|
EditWidget::~EditWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void EditWidget::addPage(const QString& labelText, const QIcon& icon, QWidget* widget)
|
void EditWidget::addPage(const QString& labelText, const QIcon& icon, QWidget* widget)
|
||||||
{
|
{
|
||||||
|
@ -86,9 +86,7 @@ EditWidgetIcons::EditWidgetIcons(QWidget* parent)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
EditWidgetIcons::~EditWidgetIcons()
|
EditWidgetIcons::~EditWidgetIcons() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
IconStruct EditWidgetIcons::state()
|
IconStruct EditWidgetIcons::state()
|
||||||
{
|
{
|
||||||
|
@ -41,9 +41,7 @@ EditWidgetProperties::EditWidgetProperties(QWidget* parent)
|
|||||||
connect(m_ui->removeCustomDataButton, SIGNAL(clicked()), SLOT(removeSelectedPluginData()));
|
connect(m_ui->removeCustomDataButton, SIGNAL(clicked()), SLOT(removeSelectedPluginData()));
|
||||||
}
|
}
|
||||||
|
|
||||||
EditWidgetProperties::~EditWidgetProperties()
|
EditWidgetProperties::~EditWidgetProperties() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void EditWidgetProperties::setFields(const TimeInfo& timeInfo, const QUuid& uuid)
|
void EditWidgetProperties::setFields(const TimeInfo& timeInfo, const QUuid& uuid)
|
||||||
{
|
{
|
||||||
|
@ -107,9 +107,7 @@ EntryPreviewWidget::EntryPreviewWidget(QWidget* parent)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
EntryPreviewWidget::~EntryPreviewWidget()
|
EntryPreviewWidget::~EntryPreviewWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void EntryPreviewWidget::clear()
|
void EntryPreviewWidget::clear()
|
||||||
{
|
{
|
||||||
|
@ -21,9 +21,7 @@
|
|||||||
|
|
||||||
FileDialog* FileDialog::m_instance(nullptr);
|
FileDialog* FileDialog::m_instance(nullptr);
|
||||||
|
|
||||||
FileDialog::FileDialog()
|
FileDialog::FileDialog() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
QString FileDialog::getOpenFileName(QWidget* parent,
|
QString FileDialog::getOpenFileName(QWidget* parent,
|
||||||
const QString& caption,
|
const QString& caption,
|
||||||
|
@ -27,9 +27,7 @@ public:
|
|||||||
static QFont fixedFont();
|
static QFont fixedFont();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Font()
|
Font() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // KEEPASSX_FONT_H
|
#endif // KEEPASSX_FONT_H
|
||||||
|
@ -48,9 +48,7 @@ private:
|
|||||||
|
|
||||||
Icons* Icons::m_instance(nullptr);
|
Icons* Icons::m_instance(nullptr);
|
||||||
|
|
||||||
Icons::Icons()
|
Icons::Icons() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
QString Icons::applicationIconName()
|
QString Icons::applicationIconName()
|
||||||
{
|
{
|
||||||
|
@ -81,9 +81,7 @@ SearchWidget::SearchWidget(QWidget* parent)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SearchWidget::~SearchWidget()
|
SearchWidget::~SearchWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool SearchWidget::eventFilter(QObject* obj, QEvent* event)
|
bool SearchWidget::eventFilter(QObject* obj, QEvent* event)
|
||||||
{
|
{
|
||||||
|
@ -53,9 +53,7 @@ TotpDialog::TotpDialog(QWidget* parent, Entry* entry)
|
|||||||
connect(m_ui->buttonBox, SIGNAL(accepted()), SLOT(copyToClipboard()));
|
connect(m_ui->buttonBox, SIGNAL(accepted()), SLOT(copyToClipboard()));
|
||||||
}
|
}
|
||||||
|
|
||||||
TotpDialog::~TotpDialog()
|
TotpDialog::~TotpDialog() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void TotpDialog::copyToClipboard()
|
void TotpDialog::copyToClipboard()
|
||||||
{
|
{
|
||||||
|
@ -38,9 +38,7 @@ TotpSetupDialog::TotpSetupDialog(QWidget* parent, Entry* entry)
|
|||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
TotpSetupDialog::~TotpSetupDialog()
|
TotpSetupDialog::~TotpSetupDialog() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void TotpSetupDialog::saveSettings()
|
void TotpSetupDialog::saveSettings()
|
||||||
{
|
{
|
||||||
|
@ -51,9 +51,7 @@ WelcomeWidget::WelcomeWidget(QWidget* parent)
|
|||||||
SLOT(openDatabaseFromFile(QListWidgetItem*)));
|
SLOT(openDatabaseFromFile(QListWidgetItem*)));
|
||||||
}
|
}
|
||||||
|
|
||||||
WelcomeWidget::~WelcomeWidget()
|
WelcomeWidget::~WelcomeWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void WelcomeWidget::openDatabaseFromFile(QListWidgetItem* item)
|
void WelcomeWidget::openDatabaseFromFile(QListWidgetItem* item)
|
||||||
{
|
{
|
||||||
|
@ -88,9 +88,7 @@ void CsvImportWidget::skippedChanged(int rows)
|
|||||||
updateTableview();
|
updateTableview();
|
||||||
}
|
}
|
||||||
|
|
||||||
CsvImportWidget::~CsvImportWidget()
|
CsvImportWidget::~CsvImportWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void CsvImportWidget::configParser()
|
void CsvImportWidget::configParser()
|
||||||
{
|
{
|
||||||
|
@ -29,9 +29,7 @@ CsvImportWizard::CsvImportWizard(QWidget* parent)
|
|||||||
connect(m_parse, SIGNAL(editFinished(bool)), this, SLOT(parseFinished(bool)));
|
connect(m_parse, SIGNAL(editFinished(bool)), this, SLOT(parseFinished(bool)));
|
||||||
}
|
}
|
||||||
|
|
||||||
CsvImportWizard::~CsvImportWizard()
|
CsvImportWizard::~CsvImportWizard() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void CsvImportWizard::load(const QString& filename, Database* database)
|
void CsvImportWizard::load(const QString& filename, Database* database)
|
||||||
{
|
{
|
||||||
|
@ -26,9 +26,7 @@ CsvParserModel::CsvParserModel(QObject* parent)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
CsvParserModel::~CsvParserModel()
|
CsvParserModel::~CsvParserModel() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void CsvParserModel::setFilename(const QString& filename)
|
void CsvParserModel::setFilename(const QString& filename)
|
||||||
{
|
{
|
||||||
|
@ -43,9 +43,7 @@ KeyComponentWidget::KeyComponentWidget(QWidget* parent)
|
|||||||
m_ui->stackedWidget->blockSignals(prev);
|
m_ui->stackedWidget->blockSignals(prev);
|
||||||
}
|
}
|
||||||
|
|
||||||
KeyComponentWidget::~KeyComponentWidget()
|
KeyComponentWidget::~KeyComponentWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void KeyComponentWidget::setComponentAdded(bool added)
|
void KeyComponentWidget::setComponentAdded(bool added)
|
||||||
{
|
{
|
||||||
|
@ -33,9 +33,7 @@ KeyFileEditWidget::KeyFileEditWidget(DatabaseSettingsWidget* parent)
|
|||||||
initComponent();
|
initComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
KeyFileEditWidget::~KeyFileEditWidget()
|
KeyFileEditWidget::~KeyFileEditWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool KeyFileEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key)
|
bool KeyFileEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key)
|
||||||
{
|
{
|
||||||
|
@ -29,9 +29,7 @@ PasswordEditWidget::PasswordEditWidget(QWidget* parent)
|
|||||||
initComponent();
|
initComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
PasswordEditWidget::~PasswordEditWidget()
|
PasswordEditWidget::~PasswordEditWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool PasswordEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key)
|
bool PasswordEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key)
|
||||||
{
|
{
|
||||||
|
@ -33,9 +33,7 @@ YubiKeyEditWidget::YubiKeyEditWidget(QWidget* parent)
|
|||||||
connect(YubiKey::instance(), SIGNAL(detectComplete(bool)), SLOT(hardwareKeyResponse(bool)), Qt::QueuedConnection);
|
connect(YubiKey::instance(), SIGNAL(detectComplete(bool)), SLOT(hardwareKeyResponse(bool)), Qt::QueuedConnection);
|
||||||
}
|
}
|
||||||
|
|
||||||
YubiKeyEditWidget::~YubiKeyEditWidget()
|
YubiKeyEditWidget::~YubiKeyEditWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool YubiKeyEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key)
|
bool YubiKeyEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key)
|
||||||
{
|
{
|
||||||
|
@ -122,9 +122,7 @@ DatabaseSettingsDialog::DatabaseSettingsDialog(QWidget* parent)
|
|||||||
pageChanged();
|
pageChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
DatabaseSettingsDialog::~DatabaseSettingsDialog()
|
DatabaseSettingsDialog::~DatabaseSettingsDialog() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void DatabaseSettingsDialog::load(const QSharedPointer<Database>& db)
|
void DatabaseSettingsDialog::load(const QSharedPointer<Database>& db)
|
||||||
{
|
{
|
||||||
|
@ -41,9 +41,7 @@ namespace Ui
|
|||||||
class IDatabaseSettingsPage
|
class IDatabaseSettingsPage
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~IDatabaseSettingsPage()
|
virtual ~IDatabaseSettingsPage() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
virtual QString name() = 0;
|
virtual QString name() = 0;
|
||||||
virtual QIcon icon() = 0;
|
virtual QIcon icon() = 0;
|
||||||
virtual QWidget* createWidget() = 0;
|
virtual QWidget* createWidget() = 0;
|
||||||
|
@ -23,9 +23,7 @@ DatabaseSettingsWidget::DatabaseSettingsWidget(QWidget* parent)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
DatabaseSettingsWidget::~DatabaseSettingsWidget()
|
DatabaseSettingsWidget::~DatabaseSettingsWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the database to be configured by this page and initialize the page.
|
* Load the database to be configured by this page and initialize the page.
|
||||||
|
@ -71,9 +71,7 @@ DatabaseSettingsWidgetDatabaseKey::DatabaseSettingsWidgetDatabaseKey(QWidget* pa
|
|||||||
setLayout(vbox);
|
setLayout(vbox);
|
||||||
}
|
}
|
||||||
|
|
||||||
DatabaseSettingsWidgetDatabaseKey::~DatabaseSettingsWidgetDatabaseKey()
|
DatabaseSettingsWidgetDatabaseKey::~DatabaseSettingsWidgetDatabaseKey() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void DatabaseSettingsWidgetDatabaseKey::load(QSharedPointer<Database> db)
|
void DatabaseSettingsWidgetDatabaseKey::load(QSharedPointer<Database> db)
|
||||||
{
|
{
|
||||||
|
@ -70,9 +70,7 @@ DatabaseSettingsWidgetEncryption::DatabaseSettingsWidgetEncryption(QWidget* pare
|
|||||||
connect(m_ui->parallelismSpinBox, SIGNAL(valueChanged(int)), SLOT(markDirty()));
|
connect(m_ui->parallelismSpinBox, SIGNAL(valueChanged(int)), SLOT(markDirty()));
|
||||||
}
|
}
|
||||||
|
|
||||||
DatabaseSettingsWidgetEncryption::~DatabaseSettingsWidgetEncryption()
|
DatabaseSettingsWidgetEncryption::~DatabaseSettingsWidgetEncryption() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
#define IS_ARGON2(uuid) (uuid == KeePass2::KDF_ARGON2D || uuid == KeePass2::KDF_ARGON2ID)
|
#define IS_ARGON2(uuid) (uuid == KeePass2::KDF_ARGON2D || uuid == KeePass2::KDF_ARGON2ID)
|
||||||
#define IS_AES_KDF(uuid) (uuid == KeePass2::KDF_AES_KDBX3 || uuid == KeePass2::KDF_AES_KDBX4)
|
#define IS_AES_KDF(uuid) (uuid == KeePass2::KDF_AES_KDBX3 || uuid == KeePass2::KDF_AES_KDBX4)
|
||||||
|
@ -33,9 +33,7 @@ DatabaseSettingsWidgetGeneral::DatabaseSettingsWidgetGeneral(QWidget* parent)
|
|||||||
connect(m_ui->historyMaxSizeCheckBox, SIGNAL(toggled(bool)), m_ui->historyMaxSizeSpinBox, SLOT(setEnabled(bool)));
|
connect(m_ui->historyMaxSizeCheckBox, SIGNAL(toggled(bool)), m_ui->historyMaxSizeSpinBox, SLOT(setEnabled(bool)));
|
||||||
}
|
}
|
||||||
|
|
||||||
DatabaseSettingsWidgetGeneral::~DatabaseSettingsWidgetGeneral()
|
DatabaseSettingsWidgetGeneral::~DatabaseSettingsWidgetGeneral() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void DatabaseSettingsWidgetGeneral::initialize()
|
void DatabaseSettingsWidgetGeneral::initialize()
|
||||||
{
|
{
|
||||||
|
@ -42,9 +42,7 @@ DatabaseSettingsWidgetMaintenance::DatabaseSettingsWidgetMaintenance(QWidget* pa
|
|||||||
SLOT(selectionChanged()));
|
SLOT(selectionChanged()));
|
||||||
}
|
}
|
||||||
|
|
||||||
DatabaseSettingsWidgetMaintenance::~DatabaseSettingsWidgetMaintenance()
|
DatabaseSettingsWidgetMaintenance::~DatabaseSettingsWidgetMaintenance() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void DatabaseSettingsWidgetMaintenance::populateIcons(QSharedPointer<Database> db)
|
void DatabaseSettingsWidgetMaintenance::populateIcons(QSharedPointer<Database> db)
|
||||||
{
|
{
|
||||||
|
@ -28,9 +28,7 @@ DatabaseSettingWidgetMetaData::DatabaseSettingWidgetMetaData(QWidget* parent)
|
|||||||
m_ui->setupUi(this);
|
m_ui->setupUi(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
DatabaseSettingWidgetMetaData::~DatabaseSettingWidgetMetaData()
|
DatabaseSettingWidgetMetaData::~DatabaseSettingWidgetMetaData() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void DatabaseSettingWidgetMetaData::initialize()
|
void DatabaseSettingWidgetMetaData::initialize()
|
||||||
{
|
{
|
||||||
|
@ -135,9 +135,7 @@ EditEntryWidget::EditEntryWidget(QWidget* parent)
|
|||||||
m_mainUi->passwordEdit->setQualityVisible(true);
|
m_mainUi->passwordEdit->setQualityVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
EditEntryWidget::~EditEntryWidget()
|
EditEntryWidget::~EditEntryWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void EditEntryWidget::setupMain()
|
void EditEntryWidget::setupMain()
|
||||||
{
|
{
|
||||||
|
@ -75,9 +75,7 @@ EntryAttachmentsWidget::EntryAttachmentsWidget(QWidget* parent)
|
|||||||
updateButtonsEnabled();
|
updateButtonsEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
EntryAttachmentsWidget::~EntryAttachmentsWidget()
|
EntryAttachmentsWidget::~EntryAttachmentsWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
const EntryAttachments* EntryAttachmentsWidget::attachments() const
|
const EntryAttachments* EntryAttachmentsWidget::attachments() const
|
||||||
{
|
{
|
||||||
|
@ -44,9 +44,7 @@ ExportDialog::ExportDialog(QSharedPointer<const Database> db, DatabaseTabWidget*
|
|||||||
MessageWidget::Warning);
|
MessageWidget::Warning);
|
||||||
}
|
}
|
||||||
|
|
||||||
ExportDialog::~ExportDialog()
|
ExportDialog::~ExportDialog() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
QString ExportDialog::getStrategyName(ExportSortingStrategy strategy)
|
QString ExportDialog::getStrategyName(ExportSortingStrategy strategy)
|
||||||
{
|
{
|
||||||
|
@ -112,9 +112,7 @@ EditGroupWidget::EditGroupWidget(QWidget* parent)
|
|||||||
setupModifiedTracking();
|
setupModifiedTracking();
|
||||||
}
|
}
|
||||||
|
|
||||||
EditGroupWidget::~EditGroupWidget()
|
EditGroupWidget::~EditGroupWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void EditGroupWidget::setupModifiedTracking()
|
void EditGroupWidget::setupModifiedTracking()
|
||||||
{
|
{
|
||||||
|
@ -39,9 +39,7 @@ namespace Ui
|
|||||||
class IEditGroupPage
|
class IEditGroupPage
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~IEditGroupPage()
|
virtual ~IEditGroupPage() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
virtual QString name() = 0;
|
virtual QString name() = 0;
|
||||||
virtual QIcon icon() = 0;
|
virtual QIcon icon() = 0;
|
||||||
virtual QWidget* createWidget() = 0;
|
virtual QWidget* createWidget() = 0;
|
||||||
|
@ -22,9 +22,7 @@ OSUtilsBase::OSUtilsBase(QObject* parent)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
OSUtilsBase::~OSUtilsBase()
|
OSUtilsBase::~OSUtilsBase() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool OSUtilsBase::setPreventScreenCapture(QWindow*, bool) const
|
bool OSUtilsBase::setPreventScreenCapture(QWindow*, bool) const
|
||||||
{
|
{
|
||||||
|
@ -25,6 +25,4 @@ ScreenLockListener::ScreenLockListener(QWidget* parent)
|
|||||||
connect(m_listener, SIGNAL(screenLocked()), this, SIGNAL(screenLocked()));
|
connect(m_listener, SIGNAL(screenLocked()), this, SIGNAL(screenLocked()));
|
||||||
}
|
}
|
||||||
|
|
||||||
ScreenLockListener::~ScreenLockListener()
|
ScreenLockListener::~ScreenLockListener() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -83,9 +83,7 @@ NixUtils::NixUtils(QObject* parent)
|
|||||||
sessionBus.callWithCallback(msg, this, SLOT(handleColorSchemeRead(QDBusVariant)));
|
sessionBus.callWithCallback(msg, this, SLOT(handleColorSchemeRead(QDBusVariant)));
|
||||||
}
|
}
|
||||||
|
|
||||||
NixUtils::~NixUtils()
|
NixUtils::~NixUtils() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool NixUtils::isDarkMode() const
|
bool NixUtils::isDarkMode() const
|
||||||
{
|
{
|
||||||
|
@ -95,9 +95,7 @@ ReportsDialog::ReportsDialog(QWidget* parent)
|
|||||||
connect(m_editEntryWidget, SIGNAL(editFinished(bool)), SLOT(switchToMainView(bool)));
|
connect(m_editEntryWidget, SIGNAL(editFinished(bool)), SLOT(switchToMainView(bool)));
|
||||||
}
|
}
|
||||||
|
|
||||||
ReportsDialog::~ReportsDialog()
|
ReportsDialog::~ReportsDialog() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void ReportsDialog::load(const QSharedPointer<Database>& db)
|
void ReportsDialog::load(const QSharedPointer<Database>& db)
|
||||||
{
|
{
|
||||||
|
@ -41,9 +41,7 @@ namespace Ui
|
|||||||
class IReportsPage
|
class IReportsPage
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~IReportsPage()
|
virtual ~IReportsPage() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
virtual QString name() = 0;
|
virtual QString name() = 0;
|
||||||
virtual QIcon icon() = 0;
|
virtual QIcon icon() = 0;
|
||||||
virtual QWidget* createWidget() = 0;
|
virtual QWidget* createWidget() = 0;
|
||||||
|
@ -22,9 +22,7 @@ ReportsWidget::ReportsWidget(QWidget* parent)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
ReportsWidget::~ReportsWidget()
|
ReportsWidget::~ReportsWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the database to be configured by this page and initialize the page.
|
* Load the database to be configured by this page and initialize the page.
|
||||||
|
@ -158,9 +158,7 @@ ReportsWidgetHealthcheck::ReportsWidgetHealthcheck(QWidget* parent)
|
|||||||
new QShortcut(Qt::Key_Delete, this, SLOT(deleteSelectedEntries()));
|
new QShortcut(Qt::Key_Delete, this, SLOT(deleteSelectedEntries()));
|
||||||
}
|
}
|
||||||
|
|
||||||
ReportsWidgetHealthcheck::~ReportsWidgetHealthcheck()
|
ReportsWidgetHealthcheck::~ReportsWidgetHealthcheck() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void ReportsWidgetHealthcheck::addHealthRow(QSharedPointer<PasswordHealth> health,
|
void ReportsWidgetHealthcheck::addHealthRow(QSharedPointer<PasswordHealth> health,
|
||||||
Group* group,
|
Group* group,
|
||||||
|
@ -79,9 +79,7 @@ ReportsWidgetHibp::ReportsWidgetHibp(QWidget* parent)
|
|||||||
new QShortcut(Qt::Key_Delete, this, SLOT(deleteSelectedEntries()));
|
new QShortcut(Qt::Key_Delete, this, SLOT(deleteSelectedEntries()));
|
||||||
}
|
}
|
||||||
|
|
||||||
ReportsWidgetHibp::~ReportsWidgetHibp()
|
ReportsWidgetHibp::~ReportsWidgetHibp() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void ReportsWidgetHibp::loadSettings(QSharedPointer<Database> db)
|
void ReportsWidgetHibp::loadSettings(QSharedPointer<Database> db)
|
||||||
{
|
{
|
||||||
|
@ -41,9 +41,7 @@ ReportsWidgetStatistics::ReportsWidgetStatistics(QWidget* parent)
|
|||||||
m_ui->statisticsTableView->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
m_ui->statisticsTableView->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReportsWidgetStatistics::~ReportsWidgetStatistics()
|
ReportsWidgetStatistics::~ReportsWidgetStatistics() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void ReportsWidgetStatistics::addStatsRow(QString name, QString value, bool bad, QString badMsg)
|
void ReportsWidgetStatistics::addStatsRow(QString name, QString value, bool bad, QString badMsg)
|
||||||
{
|
{
|
||||||
|
@ -22,9 +22,7 @@ SettingsWidget::SettingsWidget(QWidget* parent)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
SettingsWidget::~SettingsWidget()
|
SettingsWidget::~SettingsWidget() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Switch between simple mode (the default) and advanced mode.
|
* Switch between simple mode (the default) and advanced mode.
|
||||||
|
@ -773,9 +773,7 @@ namespace Phantom
|
|||||||
static MenuItemMetrics ofFontHeight(int fontHeight);
|
static MenuItemMetrics ofFontHeight(int fontHeight);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MenuItemMetrics()
|
MenuItemMetrics() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
MenuItemMetrics MenuItemMetrics::ofFontHeight(int fontHeight)
|
MenuItemMetrics MenuItemMetrics::ofFontHeight(int fontHeight)
|
||||||
|
@ -42,9 +42,7 @@ namespace Phantom
|
|||||||
struct Rgb
|
struct Rgb
|
||||||
{
|
{
|
||||||
qreal r, g, b;
|
qreal r, g, b;
|
||||||
Rgb()
|
Rgb() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
Rgb(qreal r, qreal g, qreal b)
|
Rgb(qreal r, qreal g, qreal b)
|
||||||
: r(r)
|
: r(r)
|
||||||
, g(g)
|
, g(g)
|
||||||
@ -78,9 +76,7 @@ namespace Phantom
|
|||||||
struct Hsl
|
struct Hsl
|
||||||
{
|
{
|
||||||
qreal h, s, l;
|
qreal h, s, l;
|
||||||
Hsl()
|
Hsl() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
Hsl(qreal h, qreal s, qreal l)
|
Hsl(qreal h, qreal s, qreal l)
|
||||||
: h(h)
|
: h(h)
|
||||||
, s(s)
|
, s(s)
|
||||||
|
@ -33,9 +33,7 @@ TagModel::TagModel(QObject* parent)
|
|||||||
<< qMakePair(tr("Weak Passwords"), QString("is:weak"));
|
<< qMakePair(tr("Weak Passwords"), QString("is:weak"));
|
||||||
}
|
}
|
||||||
|
|
||||||
TagModel::~TagModel()
|
TagModel::~TagModel() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void TagModel::setDatabase(QSharedPointer<Database> db)
|
void TagModel::setDatabase(QSharedPointer<Database> db)
|
||||||
{
|
{
|
||||||
|
@ -63,9 +63,7 @@ NewDatabaseWizard::NewDatabaseWizard(QWidget* parent)
|
|||||||
pageFrame->setPalette(framePalette);
|
pageFrame->setPalette(framePalette);
|
||||||
}
|
}
|
||||||
|
|
||||||
NewDatabaseWizard::~NewDatabaseWizard()
|
NewDatabaseWizard::~NewDatabaseWizard() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool NewDatabaseWizard::validateCurrentPage()
|
bool NewDatabaseWizard::validateCurrentPage()
|
||||||
{
|
{
|
||||||
|
@ -31,9 +31,7 @@ NewDatabaseWizardPage::NewDatabaseWizardPage(QWidget* parent)
|
|||||||
connect(m_ui->advancedSettingsButton, SIGNAL(clicked()), SLOT(toggleAdvancedSettings()));
|
connect(m_ui->advancedSettingsButton, SIGNAL(clicked()), SLOT(toggleAdvancedSettings()));
|
||||||
}
|
}
|
||||||
|
|
||||||
NewDatabaseWizardPage::~NewDatabaseWizardPage()
|
NewDatabaseWizardPage::~NewDatabaseWizardPage() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the database settings page widget for this wizard page.
|
* Set the database settings page widget for this wizard page.
|
||||||
|
@ -27,6 +27,4 @@ NewDatabaseWizardPageDatabaseKey::NewDatabaseWizardPageDatabaseKey(QWidget* pare
|
|||||||
setSubTitle(tr("A set of credentials known only to you that protects your database."));
|
setSubTitle(tr("A set of credentials known only to you that protects your database."));
|
||||||
}
|
}
|
||||||
|
|
||||||
NewDatabaseWizardPageDatabaseKey::~NewDatabaseWizardPageDatabaseKey()
|
NewDatabaseWizardPageDatabaseKey::~NewDatabaseWizardPageDatabaseKey() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -28,6 +28,4 @@ NewDatabaseWizardPageEncryption::NewDatabaseWizardPageEncryption(QWidget* parent
|
|||||||
"Don't worry, you can change them later in the database settings."));
|
"Don't worry, you can change them later in the database settings."));
|
||||||
}
|
}
|
||||||
|
|
||||||
NewDatabaseWizardPageEncryption::~NewDatabaseWizardPageEncryption()
|
NewDatabaseWizardPageEncryption::~NewDatabaseWizardPageEncryption() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -27,6 +27,4 @@ NewDatabaseWizardPageMetaData::NewDatabaseWizardPageMetaData(QWidget* parent)
|
|||||||
setSubTitle(tr("Please fill in the display name and an optional description for your new database:"));
|
setSubTitle(tr("Please fill in the display name and an optional description for your new database:"));
|
||||||
}
|
}
|
||||||
|
|
||||||
NewDatabaseWizardPageMetaData::~NewDatabaseWizardPageMetaData()
|
NewDatabaseWizardPageMetaData::~NewDatabaseWizardPageMetaData() = default;
|
||||||
{
|
|
||||||
}
|
|
@ -18,9 +18,7 @@
|
|||||||
|
|
||||||
#include "YubiKey.h"
|
#include "YubiKey.h"
|
||||||
|
|
||||||
YubiKey::YubiKey()
|
YubiKey::YubiKey() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
YubiKey* YubiKey::m_instance(Q_NULLPTR);
|
YubiKey* YubiKey::m_instance(Q_NULLPTR);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user