Implement room filtering

This commit is contained in:
miruka
2019-05-11 17:13:53 -04:00
parent bb86c39fe7
commit d82cb50e30
5 changed files with 71 additions and 19 deletions

View File

@@ -113,6 +113,14 @@ class Backend(QObject):
)
break
@pyqtSlot(str)
def setRoomFilter(self, pattern: str) -> None:
for account in self.accounts:
for categ in account.roomCategories:
categ.sortedRooms.filter = pattern
@staticmethod
def getDir(standard_dir: QStandardPaths.StandardLocation) -> str:
path = QStandardPaths.writableLocation(standard_dir)