diff --git a/applets/kicker/plugin/dashboardwindow.cpp b/applets/kicker/plugin/dashboardwindow.cpp index 6665e8df7..bc350ef31 100644 --- a/applets/kicker/plugin/dashboardwindow.cpp +++ b/applets/kicker/plugin/dashboardwindow.cpp @@ -168,6 +168,7 @@ void DashboardWindow::keyPressEvent(QKeyEvent *e) emit keyEscapePressed(); return; +// clang-format off } else if (m_keyEventProxy && !m_keyEventProxy->hasActiveFocus() && !(e->key() == Qt::Key_Home) && !(e->key() == Qt::Key_End) @@ -182,7 +183,7 @@ void DashboardWindow::keyPressEvent(QKeyEvent *e) && !(e->key() == Qt::Key_Menu) && !(e->key() == Qt::Key_Tab) && !(e->key() == Qt::Key_Backtab)) { - +// clang-format on QPointer previousFocusItem = activeFocusItem(); m_keyEventProxy->forceActiveFocus(); diff --git a/applets/kicker/plugin/kastatsfavoritesmodel.cpp b/applets/kicker/plugin/kastatsfavoritesmodel.cpp index d8b5d0b5f..95b5578e7 100644 --- a/applets/kicker/plugin/kastatsfavoritesmodel.cpp +++ b/applets/kicker/plugin/kastatsfavoritesmodel.cpp @@ -50,6 +50,7 @@ using namespace KAStats::Terms; QString agentForUrl(const QString &url) { +// clang-format off return url.startsWith(QLatin1String("ktp:")) ? AGENT_CONTACTS : url.startsWith(QLatin1String("preferred:")) @@ -62,6 +63,7 @@ QString agentForUrl(const QString &url) ? AGENT_DOCUMENTS // use applications as the default : AGENT_APPLICATIONS; +// clang-format on } class KAStatsFavoritesModel::Private: public QAbstractListModel { @@ -244,7 +246,7 @@ public: [&] (const NormalizedId &left, const NormalizedId &right) { auto leftIndex = ordering.indexOf(left.value()); auto rightIndex = ordering.indexOf(right.value()); - +// clang-format off return (leftIndex == -1 && rightIndex == -1) ? left.value() < right.value() : @@ -256,6 +258,7 @@ public: // otherwise leftIndex < rightIndex; +// clang-format on }); // Debugging: @@ -360,7 +363,7 @@ public: const auto index = item.row(); const auto entry = m_itemEntries[m_items[index].value()]; - +// clang-format off return entry == nullptr ? QVariant() : role == Qt::DisplayRole ? entry->name() : role == Qt::DecorationRole ? entry->icon() @@ -370,6 +373,7 @@ public: : role == Kicker::HasActionListRole ? entry->hasActions() : role == Kicker::ActionListRole ? entry->actions() : QVariant(); +// clang-format on } bool trigger(int row, const QString &actionId, const QVariant &argument) diff --git a/dataengines/time/solarsystem.cpp b/dataengines/time/solarsystem.cpp index 7bc35f152..c60d598a4 100644 --- a/dataengines/time/solarsystem.cpp +++ b/dataengines/time/solarsystem.cpp @@ -83,7 +83,7 @@ bool Moon::calcPerturbations(double *lo, double *la, double *r) double Ms = m_sun->meanAnomaly(); double D = L - m_sun->meanLongitude(); double F = L - N; - +// clang-format off *lo += -1.274 * sind(M - 2 * D) +0.658 * sind(2 * D) -0.186 * sind(Ms) @@ -103,6 +103,7 @@ bool Moon::calcPerturbations(double *lo, double *la, double *r) +0.017 * sind(2 * M + F); *r += -0.58 * cosd(M - 2 * D) -0.46 * cosd(2 * D); +// clang-format on return true; } diff --git a/kcms/kfontinst/kcmfontinst/KCmFontInst.cpp b/kcms/kfontinst/kcmfontinst/KCmFontInst.cpp index 58c34b982..55e03cad0 100644 --- a/kcms/kfontinst/kcmfontinst/KCmFontInst.cpp +++ b/kcms/kfontinst/kcmfontinst/KCmFontInst.cpp @@ -1179,6 +1179,7 @@ void CKCmFontInst::toggleFonts(CJobRunner::ItemList &urls, const QStringList &fo case 0: break; case 1: +// clang-format off doIt = KMessageBox::Continue==KMessageBox::warningContinueCancel(this, grp.isEmpty() ? enable ? i18n("

Do you really want to " @@ -1220,6 +1221,7 @@ void CKCmFontInst::toggleFonts(CJobRunner::ItemList &urls, const QStringList &fo enable ? i18n("Enable Fonts") : i18n("Disable Fonts"), enable ? KGuiItem(i18n("Enable"), "font-enable", i18n("Enable Fonts")) : KGuiItem(i18n("Disable"), "font-disable", i18n("Disable Fonts"))); +// clang-format on } if(doIt) diff --git a/kcms/kfontinst/viewpart/UnicodeScripts.h b/kcms/kfontinst/viewpart/UnicodeScripts.h index 3e35c8dd7..db3c8d29f 100644 --- a/kcms/kfontinst/viewpart/UnicodeScripts.h +++ b/kcms/kfontinst/viewpart/UnicodeScripts.h @@ -9,6 +9,7 @@ #include #include +// clang-format off static const char * const constUnicodeScriptList[] = { I18N_NOOP("Arabic"), @@ -1281,6 +1282,6 @@ static const TUnicodeScript constUnicodeScripts[] = { 0xE0100, 0xE01EF, 29 }, { 0x0, 0x0, -1 } }; - +// clang-format on #endif