format(remainder): clang-format remainder of files
Python / lint-format (pull_request) Successful in 27s
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 48s
Python / test (pull_request) Successful in 1m2s
C++ / build (pull_request) Successful in 2m15s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m25s

This commit is contained in:
2026-06-30 02:10:37 +02:00
parent 658be09da2
commit 1e31e14de8
3 changed files with 8 additions and 5 deletions
@@ -15,8 +15,8 @@ constexpr qint32 TAIL_DEGREES_OFFSET = -20;
constexpr qint32 EXTRA_DEGREES_PER_CYCLE = 250; constexpr qint32 EXTRA_DEGREES_PER_CYCLE = 250;
constexpr qint32 CONSTANT_ROTATION_DEGREES = 1520; constexpr qint32 CONSTANT_ROTATION_DEGREES = 1520;
constexpr std::array<qint32, TOTAL_CYCLES> DELAY_TO_EXPAND_IN_MS = constexpr std::array<qint32, TOTAL_CYCLES> DELAY_TO_EXPAND_IN_MS = {
{0, 1350, 2700, 4050}; 0, 1350, 2700, 4050};
constexpr std::array<qint32, TOTAL_CYCLES> DELAY_TO_COLLAPSE_IN_MS = { constexpr std::array<qint32, TOTAL_CYCLES> DELAY_TO_COLLAPSE_IN_MS = {
667, 2017, 3367, 4717}; 667, 2017, 3367, 4717};
+1 -1
View File
@@ -76,4 +76,4 @@ class HyprDevices : public QObject {
QList<HyprKeyboard*> m_keyboards; QList<HyprKeyboard*> m_keyboards;
}; };
} } // namespace ZShell::internal::hypr
+5 -2
View File
@@ -14,7 +14,8 @@ int DesktopModel::rowCount(const QModelIndex& parent) const {
} }
QVariant DesktopModel::data(const QModelIndex& index, int role) const { QVariant DesktopModel::data(const QModelIndex& index, int role) const {
if (!index.isValid() || index.row() >= static_cast<int>(m_items.size())) return QVariant(); if (!index.isValid() || index.row() >= static_cast<int>(m_items.size()))
return QVariant();
const DesktopItem& item = m_items[index.row()]; const DesktopItem& item = m_items[index.row()];
switch (role) { switch (role) {
@@ -243,7 +244,9 @@ void DesktopModel::massMove(
} }
emit dataChanged( emit dataChanged(
index(0, 0), index(static_cast<int>(m_items.size()) - 1, 0), {GridXRole, GridYRole}); index(0, 0),
index(static_cast<int>(m_items.size()) - 1, 0),
{GridXRole, GridYRole});
saveCurrentLayout(); saveCurrentLayout();
} }