Remove unused old model stuff
This commit is contained in:
parent
4d3c26abd4
commit
45790dc57c
1
TODO.md
1
TODO.md
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
- add account number binds
|
- add account number binds
|
||||||
|
|
||||||
- remove `import QtQml.Models 2.12`s
|
|
||||||
- fix left rooms opacity
|
- fix left rooms opacity
|
||||||
- fix escape keybinds (filter rooms, message selection)
|
- fix escape keybinds (filter rooms, message selection)
|
||||||
- fix python getting stuck when loading large room
|
- fix python getting stuck when loading large room
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
||||||
|
|
||||||
import QtQuick 2.12
|
|
||||||
import QtQml.Models 2.12
|
|
||||||
|
|
||||||
HFilterModel {
|
|
||||||
model: sourceModel
|
|
||||||
acceptItem: item => utils.filterMatches(filter, item[field])
|
|
||||||
onFilterChanged: refilterAll()
|
|
||||||
|
|
||||||
|
|
||||||
property string field: "id"
|
|
||||||
property string filter: ""
|
|
||||||
property ListModel sourceModel
|
|
||||||
|
|
||||||
readonly property Connections sourceModelConnections: Connections {
|
|
||||||
target: sourceModel // model is non-notifiable
|
|
||||||
onFieldsChanged: if (field in changes) refilterAt(index)
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
import QtQuick 2.12
|
import QtQuick 2.12
|
||||||
import QtQuick.Layouts 1.12
|
import QtQuick.Layouts 1.12
|
||||||
import QtQml.Models 2.12
|
|
||||||
import Qt.labs.qmlmodels 1.0
|
import Qt.labs.qmlmodels 1.0
|
||||||
import ".."
|
import ".."
|
||||||
import "../Base"
|
import "../Base"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user