Skip to content

Commit

Permalink
Port activitylist to a QTreeview and QAbstractTableModel
Browse files Browse the repository at this point in the history
We now hav proper headers and sortig capabilities

Fixes: #8158
  • Loading branch information
TheOneRing committed Mar 25, 2021
1 parent f03c931 commit 30016be
Show file tree
Hide file tree
Showing 17 changed files with 260 additions and 334 deletions.
7 changes: 7 additions & 0 deletions changelog/unreleased/8158
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Enhancement: We reworked the server activity table

We redone the server activity table, its now behaves as a proper table,
is sortable, supports right to left layouts and overall behave more smooth.

https://github.com/owncloud/client/issues/8158
https://github.com/owncloud/client/issues/4336
1 change: 0 additions & 1 deletion src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ set(client_SRCS
activitydata.cpp
activitylistmodel.cpp
activitywidget.cpp
activityitemdelegate.cpp
selectivesyncdialog.cpp
settingsdialog.cpp
sharedialog.cpp
Expand Down
5 changes: 0 additions & 5 deletions src/gui/activitydata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ const QVector<ActivityLink> &Activity::links() const
return _links;
}

bool Activity::operator<(const Activity &lhs) const
{
return _dateTime.toMSecsSinceEpoch() > lhs._dateTime.toMSecsSinceEpoch();
}

bool Activity::operator==(const Activity &lhs) const
{
return (_type == lhs._type && _id == lhs._id && _uuid == lhs._uuid);
Expand Down
2 changes: 0 additions & 2 deletions src/gui/activitydata.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ class Activity
const QVector<ActivityLink> &links() const;

bool operator==(const Activity &lhs) const;
bool operator<(const Activity &lhs) const;


private:
Type _type;
Expand Down
151 changes: 0 additions & 151 deletions src/gui/activityitemdelegate.cpp

This file was deleted.

49 changes: 0 additions & 49 deletions src/gui/activityitemdelegate.h

This file was deleted.

Loading

0 comments on commit 30016be

Please sign in to comment.