File tree Expand file tree Collapse file tree 3 files changed +10
-17
lines changed Expand file tree Collapse file tree 3 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 2222using namespace OCC ::Spaces;
2323
2424SpacesModel::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-
4637QVariant SpacesModel::data (const QModelIndex &index, int role) const
4738{
4839 Q_ASSERT (checkIndex (index, QAbstractItemModel::CheckIndexOption::IndexIsValid));
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class Space;
2323};
2424
2525namespace 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-
5451private:
5552 GraphApi::SpacesManager *_spacesManager = nullptr ;
5653 QVector<GraphApi::Space *> _spacesList;
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments