From 90172330b872067f647600b25ee7eac5429a6f69 Mon Sep 17 00:00:00 2001 From: ownClouders Date: Fri, 14 Jun 2024 03:05:59 +0000 Subject: [PATCH] [tx] updated client translations from transifex [skip ci] --- src/gui/spaces/spacesmodel.cpp | 11 +---------- src/gui/spaces/spacesmodel.h | 7 ++----- translations/client_en.ts | 9 +++++++-- 3 files changed, 10 insertions(+), 17 deletions(-) diff --git a/src/gui/spaces/spacesmodel.cpp b/src/gui/spaces/spacesmodel.cpp index 4021a27e996..5acc4e53d8f 100644 --- a/src/gui/spaces/spacesmodel.cpp +++ b/src/gui/spaces/spacesmodel.cpp @@ -22,7 +22,7 @@ using namespace OCC::Spaces; SpacesModel::SpacesModel(QObject *parent) - : QAbstractTableModel(parent) + : QAbstractListModel(parent) { } @@ -34,15 +34,6 @@ int SpacesModel::rowCount(const QModelIndex &parent) const return static_cast(_spacesList.size()); } -int SpacesModel::columnCount(const QModelIndex &parent) const -{ - Q_ASSERT(checkIndex(parent)); - if (parent.isValid()) { - return 0; - } - return 1; -} - QVariant SpacesModel::data(const QModelIndex &index, int role) const { Q_ASSERT(checkIndex(index, QAbstractItemModel::CheckIndexOption::IndexIsValid)); diff --git a/src/gui/spaces/spacesmodel.h b/src/gui/spaces/spacesmodel.h index 946a0a38b3f..e46f97a68de 100644 --- a/src/gui/spaces/spacesmodel.h +++ b/src/gui/spaces/spacesmodel.h @@ -23,7 +23,7 @@ class Space; }; namespace OCC::Spaces { -class SpacesModel : public QAbstractTableModel +class SpacesModel : public QAbstractListModel { Q_OBJECT @@ -43,14 +43,11 @@ class SpacesModel : public QAbstractTableModel explicit SpacesModel(QObject *parent = nullptr); int rowCount(const QModelIndex &parent = QModelIndex()) const override; - int columnCount(const QModelIndex &parent = QModelIndex()) const override; - QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + QHash roleNames() const override; void setSpacesManager(GraphApi::SpacesManager *spacesManager); - QHash roleNames() const override; - private: GraphApi::SpacesManager *_spacesManager = nullptr; QVector _spacesList; diff --git a/translations/client_en.ts b/translations/client_en.ts index 34c13a50aa1..a1a5cdb20f9 100644 --- a/translations/client_en.ts +++ b/translations/client_en.ts @@ -446,12 +446,17 @@ File synchronization desktop utility. - + + Notification icon + + + + Lorem ipsum dolor sit amet - + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod temporm