foldermodel: store information about screen used

Authored by McPain on Apr 2 2019, 9:47 AM.

Description

foldermodel: store information about screen used

Summary:
BUG: 401464

According to FolderModel::filterAcceptsRow code, it is possible that folderview is used by containment but not associated with a screen.
In case of m_screen == -1 there was no information about which items we should filter out.

Instead, we do not change m_screen to -1 and we can filter out items that does not belong to our screen.
m_screenUsed shows whether folderview is associated with a screen or not

Reviewers: broulik, hein, Plasma

Reviewed By: hein, Plasma

Subscribers: cfeck, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D18979

Details

Committed
heinApr 2 2019, 9:49 AM
Reviewer
Plasma
Differential Revision
D18979: foldermodel: store information about screen used
Parents
R119:408f03ca989e: Avoid calling QT_LSTAT and accessing recent documents
Branches
Unknown
Tags
Unknown