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
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:
@@ -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<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()];
|
||||
switch (role) {
|
||||
@@ -243,7 +244,9 @@ void DesktopModel::massMove(
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user