Warning, /maui/fiery/src/views/history/HistoryView.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.14
0002 import QtQuick.Controls 2.14
0003 import QtQuick.Layouts 1.3
0004 
0005 import org.mauikit.controls 1.3 as Maui
0006 
0007 import org.maui.fiery 1.0 as Fiery
0008 
0009 
0010 Maui.Page
0011 {
0012     id: control
0013 
0014     footBar.visible: false
0015     headBar.middleContent: Maui.SearchField
0016     {
0017         id: _entryField
0018         Layout.fillWidth: true
0019         Layout.maximumWidth: 500
0020         Layout.alignment: Qt.AlignCenter
0021         onAccepted:
0022         {
0023             _listView.model.filter = text
0024         }
0025         onCleared:
0026         {
0027             _listView.model.clearFilters()
0028         }
0029     }
0030 
0031     Maui.ListBrowser
0032     {
0033         id: _listView
0034         anchors.fill: parent
0035 //        spacing: Maui.Style.space.medium
0036 
0037         model: Maui.BaseModel
0038         {
0039 
0040             list: Fiery.History
0041             filter: _entryField.text
0042             sort: "adddate"
0043             sortOrder: Qt.DescendingOrder
0044             recursiveFilteringEnabled: true
0045             sortCaseSensitivity: Qt.CaseInsensitive
0046             filterCaseSensitivity: Qt.CaseInsensitive
0047         }
0048 
0049         delegate: Maui.ListBrowserDelegate
0050         {
0051             width: ListView.view.width
0052 
0053             label1.text: model.title
0054             tooltipText: model.url
0055             imageSource: model.icon.replace("image://favicon/", "")
0056             iconSizeHint: Maui.Style.iconSizes.medium
0057 
0058             onClicked:
0059             {
0060                 _listView.currentIndex = index
0061                 _browserView.openTab(model.url)
0062             }
0063         }
0064     }
0065 }