mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-25 17:16:33 -05:00
Restore correct formatting
Many lines were not conformant with the project's formatting rules. This patch should fix all formatting and whitespace issues in the code base. A clang-format directive was put around the connect() calls containing SIGNALs and SLOTs whose signatures would be denormalized because of the formatting rules.
This commit is contained in:
parent
f9625189cb
commit
fc930bae69
186 changed files with 2437 additions and 2122 deletions
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
#include "DatabaseSettingsWidgetGeneral.h"
|
||||
#include "ui_DatabaseSettingsWidgetGeneral.h"
|
||||
|
||||
#include "core/Clock.h"
|
||||
#include "core/Database.h"
|
||||
#include "core/Entry.h"
|
||||
|
|
@ -24,7 +25,8 @@
|
|||
#include "core/Metadata.h"
|
||||
|
||||
DatabaseSettingsWidgetGeneral::DatabaseSettingsWidgetGeneral(QWidget* parent)
|
||||
: DatabaseSettingsWidget(parent), m_ui(new Ui::DatabaseSettingsWidgetGeneral())
|
||||
: DatabaseSettingsWidget(parent)
|
||||
, m_ui(new Ui::DatabaseSettingsWidgetGeneral())
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
|
||||
|
|
@ -53,7 +55,7 @@ void DatabaseSettingsWidgetGeneral::initialize()
|
|||
m_ui->historyMaxItemsSpinBox->setValue(Metadata::DefaultHistoryMaxItems);
|
||||
m_ui->historyMaxItemsCheckBox->setChecked(false);
|
||||
}
|
||||
int historyMaxSizeMiB = qRound(meta->historyMaxSize()/qreal(1048576));
|
||||
int historyMaxSizeMiB = qRound(meta->historyMaxSize() / qreal(1048576));
|
||||
if (historyMaxSizeMiB > 0) {
|
||||
m_ui->historyMaxSizeSpinBox->setValue(historyMaxSizeMiB);
|
||||
m_ui->historyMaxSizeCheckBox->setChecked(true);
|
||||
|
|
@ -100,7 +102,7 @@ bool DatabaseSettingsWidgetGeneral::save()
|
|||
|
||||
int historyMaxSize;
|
||||
if (m_ui->historyMaxSizeCheckBox->isChecked()) {
|
||||
historyMaxSize = m_ui->historyMaxSizeSpinBox->value()*1048576;
|
||||
historyMaxSize = m_ui->historyMaxSizeSpinBox->value() * 1048576;
|
||||
} else {
|
||||
historyMaxSize = -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue