Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/tray/UserModel.cpp')
-rw-r--r--src/gui/tray/UserModel.cpp9
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();