diff options
Diffstat (limited to 'src/gui/tray/UserModel.cpp')
-rw-r--r-- | src/gui/tray/UserModel.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/tray/UserModel.cpp b/src/gui/tray/UserModel.cpp index c9e3d92b5..3624dd652 100644 --- a/src/gui/tray/UserModel.cpp +++ b/src/gui/tray/UserModel.cpp @@ -14,6 +14,7 @@ #include "syncfileitem.h" #include "tray/ActivityListModel.h" #include "tray/NotificationCache.h" +#include "tray/unifiedsearchresultslistmodel.h" #include "userstatusconnector.h" #include <QDesktopServices> @@ -38,7 +39,8 @@ User::User(AccountStatePtr &account, const bool &isCurrent, QObject *parent) : QObject(parent) , _account(account) , _isCurrentUser(isCurrent) - , _activityModel(new ActivityListModel(_account.data())) + , _activityModel(new ActivityListModel(_account.data(), this)) + , _unifiedSearchResultsModel(new UnifiedSearchResultsListModel(_account.data(), this)) , _notificationRequestsRunning(0) { connect(ProgressDispatcher::instance(), &ProgressDispatcher::progressInfo, @@ -589,6 +591,11 @@ ActivityListModel *User::getActivityModel() return _activityModel; } +UnifiedSearchResultsListModel *User::getUnifiedSearchResultsListModel() const +{ + return _unifiedSearchResultsModel; +} + void User::openLocalFolder() { const auto folder = getFolder(); |