Changeset View
Changeset View
Standalone View
Standalone View
qmlUiKirigami/Main.qml
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Line(s) | 51 | onFilterBy: { | |||
---|---|---|---|---|---|
98 | } | 98 | } | ||
99 | } | 99 | } | ||
100 | } | 100 | } | ||
101 | 101 | | |||
102 | Koko.SortModel { | 102 | Koko.SortModel { | ||
103 | id: imageFolderModel | 103 | id: imageFolderModel | ||
104 | sourceModel: Koko.ImageFolderModel { | 104 | sourceModel: Koko.ImageFolderModel { | ||
105 | url: imagePathArgument | 105 | url: imagePathArgument | ||
106 | onRowsInserted: { | ||||
107 | if( indexForUrl(imagePathArgument) != -1) { | ||||
108 | currentImage.model = this | ||||
109 | currentImage.index = indexForUrl(imagePathArgument) | ||||
110 | imageViewer.state = "open" | ||||
111 | } | ||||
112 | } | ||||
106 | } | 113 | } | ||
107 | /* | 114 | /* | ||
108 | * filterRole is an Item property exposed by the QSortFilterProxyModel | 115 | * filterRole is an Item property exposed by the QSortFilterProxyModel | ||
109 | */ | 116 | */ | ||
110 | filterRole: Koko.Roles.MimeTypeRole | 117 | filterRole: Koko.Roles.MimeTypeRole | ||
111 | } | 118 | } | ||
112 | 119 | | |||
113 | Koko.SortModel { | 120 | Koko.SortModel { | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |