Skip to content

Commit

Permalink
[tx] updated client translations from transifex [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ownclouders authored and TheOneRing committed Jun 14, 2024
1 parent f85421f commit 9017233
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
11 changes: 1 addition & 10 deletions src/gui/spaces/spacesmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
using namespace OCC::Spaces;

SpacesModel::SpacesModel(QObject *parent)
: QAbstractTableModel(parent)
: QAbstractListModel(parent)
{
}

Expand All @@ -34,15 +34,6 @@ int SpacesModel::rowCount(const QModelIndex &parent) const
return static_cast<int>(_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));
Expand Down
7 changes: 2 additions & 5 deletions src/gui/spaces/spacesmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Space;
};

namespace OCC::Spaces {
class SpacesModel : public QAbstractTableModel
class SpacesModel : public QAbstractListModel
{
Q_OBJECT

Expand All @@ -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<int, QByteArray> roleNames() const override;

void setSpacesManager(GraphApi::SpacesManager *spacesManager);

QHash<int, QByteArray> roleNames() const override;

private:
GraphApi::SpacesManager *_spacesManager = nullptr;
QVector<GraphApi::Space *> _spacesList;
Expand Down
9 changes: 7 additions & 2 deletions translations/client_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,12 +446,17 @@ File synchronization desktop utility.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui/notificationwidget.ui" line="73"/>
<location filename="../src/gui/notificationwidget.ui" line="52"/>
<source>Notification icon</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui/notificationwidget.ui" line="76"/>
<source>Lorem ipsum dolor sit amet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui/notificationwidget.ui" line="86"/>
<location filename="../src/gui/notificationwidget.ui" line="89"/>
<source>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod temporm </source>
<translation type="unfinished"></translation>
</message>
Expand Down

0 comments on commit 9017233

Please sign in to comment.