diff options
author | Jonathan White <support@dmapps.us> | 2019-01-20 17:50:20 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2019-01-29 06:38:59 +0300 |
commit | 7e1b16250c8a3b7854030c86af941d0b83d4a0b9 (patch) | |
tree | 83fe30abc4e1e22f6ae5891cb2bf354e0dc90260 /src/gui/EntryPreviewWidget.cpp | |
parent | c74664097b010b1c463011ec6ea07fd5c392a178 (diff) |
Performed project-wide code formatting
* Updated format CMake command to properly
ignore new directories and files
* Added output when command is run
* Resolves #2623
Diffstat (limited to 'src/gui/EntryPreviewWidget.cpp')
-rw-r--r-- | src/gui/EntryPreviewWidget.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/EntryPreviewWidget.cpp b/src/gui/EntryPreviewWidget.cpp index 06280a2a5..0fd8826c8 100644 --- a/src/gui/EntryPreviewWidget.cpp +++ b/src/gui/EntryPreviewWidget.cpp @@ -30,8 +30,9 @@ #include "keeshare/KeeShare.h" #endif -namespace { -constexpr int GeneralTabIndex = 0; +namespace +{ + constexpr int GeneralTabIndex = 0; } EntryPreviewWidget::EntryPreviewWidget(QWidget* parent) @@ -208,7 +209,7 @@ void EntryPreviewWidget::updateEntryGeneralTab() const TimeInfo entryTime = m_currentEntry->timeInfo(); const QString expires = - entryTime.expires() ? entryTime.expiryTime().toLocalTime().toString(Qt::DefaultLocaleShortDate) : tr("Never"); + entryTime.expires() ? entryTime.expiryTime().toLocalTime().toString(Qt::DefaultLocaleShortDate) : tr("Never"); m_ui->entryExpirationLabel->setText(expires); } @@ -258,7 +259,7 @@ void EntryPreviewWidget::updateEntryAutotypeTab() const auto associations = autotypeAssociations->getAll(); for (const auto& assoc : associations) { const QString sequence = - assoc.sequence.isEmpty() ? m_currentEntry->effectiveAutoTypeSequence() : assoc.sequence; + assoc.sequence.isEmpty() ? m_currentEntry->effectiveAutoTypeSequence() : assoc.sequence; items.append(new QTreeWidgetItem(m_ui->entryAutotypeTree, {assoc.window, sequence})); } @@ -284,7 +285,7 @@ void EntryPreviewWidget::updateGroupGeneralTab() const TimeInfo groupTime = m_currentGroup->timeInfo(); const QString expiresText = - groupTime.expires() ? groupTime.expiryTime().toString(Qt::DefaultLocaleShortDate) : tr("Never"); + groupTime.expires() ? groupTime.expiryTime().toString(Qt::DefaultLocaleShortDate) : tr("Never"); m_ui->groupExpirationLabel->setText(expiresText); } |