From 1e31e14de8759cae7a7df898b79d051891f0823f Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Tue, 30 Jun 2026 02:10:37 +0200 Subject: [PATCH] format(remainder): clang-format remainder of files --- Plugins/ZShell/Internal/circularindicatormanager.cpp | 4 ++-- Plugins/ZShell/Internal/hyprdevices.hpp | 2 +- Plugins/ZShell/Services/desktopmodel.cpp | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Plugins/ZShell/Internal/circularindicatormanager.cpp b/Plugins/ZShell/Internal/circularindicatormanager.cpp index 15ce0f2..fcff143 100644 --- a/Plugins/ZShell/Internal/circularindicatormanager.cpp +++ b/Plugins/ZShell/Internal/circularindicatormanager.cpp @@ -15,8 +15,8 @@ constexpr qint32 TAIL_DEGREES_OFFSET = -20; constexpr qint32 EXTRA_DEGREES_PER_CYCLE = 250; constexpr qint32 CONSTANT_ROTATION_DEGREES = 1520; -constexpr std::array DELAY_TO_EXPAND_IN_MS = - {0, 1350, 2700, 4050}; +constexpr std::array DELAY_TO_EXPAND_IN_MS = { + 0, 1350, 2700, 4050}; constexpr std::array DELAY_TO_COLLAPSE_IN_MS = { 667, 2017, 3367, 4717}; diff --git a/Plugins/ZShell/Internal/hyprdevices.hpp b/Plugins/ZShell/Internal/hyprdevices.hpp index b554240..b65ea9a 100644 --- a/Plugins/ZShell/Internal/hyprdevices.hpp +++ b/Plugins/ZShell/Internal/hyprdevices.hpp @@ -76,4 +76,4 @@ class HyprDevices : public QObject { QList m_keyboards; }; -} +} // namespace ZShell::internal::hypr diff --git a/Plugins/ZShell/Services/desktopmodel.cpp b/Plugins/ZShell/Services/desktopmodel.cpp index fb361e4..e9446b9 100644 --- a/Plugins/ZShell/Services/desktopmodel.cpp +++ b/Plugins/ZShell/Services/desktopmodel.cpp @@ -14,7 +14,8 @@ int DesktopModel::rowCount(const QModelIndex& parent) const { } QVariant DesktopModel::data(const QModelIndex& index, int role) const { - if (!index.isValid() || index.row() >= static_cast(m_items.size())) return QVariant(); + if (!index.isValid() || index.row() >= static_cast(m_items.size())) + return QVariant(); const DesktopItem& item = m_items[index.row()]; switch (role) { @@ -243,7 +244,9 @@ void DesktopModel::massMove( } emit dataChanged( - index(0, 0), index(static_cast(m_items.size()) - 1, 0), {GridXRole, GridYRole}); + index(0, 0), + index(static_cast(m_items.size()) - 1, 0), + {GridXRole, GridYRole}); saveCurrentLayout(); }