Skip to content

Commit 9017233

Browse files
owncloudersTheOneRing
authored andcommitted
[tx] updated client translations from transifex [skip ci]
1 parent f85421f commit 9017233

File tree

3 files changed

+10
-17
lines changed

3 files changed

+10
-17
lines changed

src/gui/spaces/spacesmodel.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
using namespace OCC::Spaces;
2323

2424
SpacesModel::SpacesModel(QObject *parent)
25-
: QAbstractTableModel(parent)
25+
: QAbstractListModel(parent)
2626
{
2727
}
2828

@@ -34,15 +34,6 @@ int SpacesModel::rowCount(const QModelIndex &parent) const
3434
return static_cast<int>(_spacesList.size());
3535
}
3636

37-
int SpacesModel::columnCount(const QModelIndex &parent) const
38-
{
39-
Q_ASSERT(checkIndex(parent));
40-
if (parent.isValid()) {
41-
return 0;
42-
}
43-
return 1;
44-
}
45-
4637
QVariant SpacesModel::data(const QModelIndex &index, int role) const
4738
{
4839
Q_ASSERT(checkIndex(index, QAbstractItemModel::CheckIndexOption::IndexIsValid));

src/gui/spaces/spacesmodel.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Space;
2323
};
2424

2525
namespace OCC::Spaces {
26-
class SpacesModel : public QAbstractTableModel
26+
class SpacesModel : public QAbstractListModel
2727
{
2828
Q_OBJECT
2929

@@ -43,14 +43,11 @@ class SpacesModel : public QAbstractTableModel
4343
explicit SpacesModel(QObject *parent = nullptr);
4444

4545
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
46-
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
47-
4846
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
47+
QHash<int, QByteArray> roleNames() const override;
4948

5049
void setSpacesManager(GraphApi::SpacesManager *spacesManager);
5150

52-
QHash<int, QByteArray> roleNames() const override;
53-
5451
private:
5552
GraphApi::SpacesManager *_spacesManager = nullptr;
5653
QVector<GraphApi::Space *> _spacesList;

translations/client_en.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,12 +446,17 @@ File synchronization desktop utility.</source>
446446
<translation type="unfinished"></translation>
447447
</message>
448448
<message>
449-
<location filename="../src/gui/notificationwidget.ui" line="73"/>
449+
<location filename="../src/gui/notificationwidget.ui" line="52"/>
450+
<source>Notification icon</source>
451+
<translation type="unfinished"></translation>
452+
</message>
453+
<message>
454+
<location filename="../src/gui/notificationwidget.ui" line="76"/>
450455
<source>Lorem ipsum dolor sit amet</source>
451456
<translation type="unfinished"></translation>
452457
</message>
453458
<message>
454-
<location filename="../src/gui/notificationwidget.ui" line="86"/>
459+
<location filename="../src/gui/notificationwidget.ui" line="89"/>
455460
<source>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod temporm </source>
456461
<translation type="unfinished"></translation>
457462
</message>

0 commit comments

Comments
 (0)