Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit aea08c85 authored by camilo higuita's avatar camilo higuita

fixes

parent a5dddbee
......@@ -31,8 +31,7 @@ Maui.Page
/*signals*/
signal picClicked(int index)
floatingBar: true
footBarOverlap: true
headBar.drawBorder: false
Maui.Holder
......@@ -77,7 +76,6 @@ Maui.Page
}
headBarTitle: grid.count+" "+qsTr("images")
headBar.plegable : false
headBar.rightContent:[
Maui.ToolButton
{
......@@ -128,13 +126,13 @@ headBar.plegable : false
onTriggered: pixList.sortBy = GalleryList.DATE
}
// Maui.MenuItem
// {
// text: qsTr("Place")
// checkable: true
// checked: pixList.sortBy === FMList.PLACE
// onTriggered: pixList.sortBy = FMList.PLACE
// }
// Maui.MenuItem
// {
// text: qsTr("Place")
// checkable: true
// checked: pixList.sortBy === FMList.PLACE
// onTriggered: pixList.sortBy = FMList.PLACE
// }
Maui.MenuItem
{
......@@ -163,23 +161,23 @@ headBar.plegable : false
}
]
footBar.colorScheme.backgroundColor: accentColor
footBar.colorScheme.textColor: altColorText
footBar.visible: false
footBar.middleContent: [
Maui.ToolButton
{
iconName: "zoom-in"
iconColor: altColorText
onClicked: zoomIn()
},
Maui.ToolButton
{
iconName: "zoom-out"
iconColor: altColorText
onClicked: zoomOut()
}
]
// footBar.colorScheme.backgroundColor: accentColor
// footBar.colorScheme.textColor: altColorText
// footBar.visible: false
// footBar.middleContent: [
// Maui.ToolButton
// {
// iconName: "zoom-in"
// iconColor: altColorText
// onClicked: zoomIn()
// },
// Maui.ToolButton
// {
// iconName: "zoom-out"
// iconColor: altColorText
// onClicked: zoomOut()
// }
// ]
Component
{
......
......@@ -29,10 +29,8 @@ StackView
headBar.visible: false
footBar.drawBorder: false
headBar.middleContent: Maui.TextField
footBar.middleContent: Maui.TextField
{
Layout.margins: space.medium
Layout.fillWidth: true
placeholderText: qsTr("Filter...")
width: foldersPage.footBar.middleLayout.width * 0.9
onAccepted: filter(text)
......
......@@ -6,18 +6,13 @@ import "../../../db/Query.js" as Q
import org.kde.mauikit 1.0 as Maui
Maui.Page
{
property string currentQuery : ""
margins: 0
headBar.visible: false
PixGrid
{
id: searchResults
property string currentQuery : ""
anchors.fill: parent
headBar.visible: true
headBarExitIcon: "edit-clear"
headBarTitle: searchResults.grid.count + qsTr(" results")
......@@ -26,45 +21,48 @@ Maui.Page
holder.title : "No Results!"
holder.body: "Try with another query"
holder.emojiSize: iconSizes.huge
}
footBar.drawBorder: false
footBar.middleContent: Maui.TextField
{
id: searchInput
placeholderText: qsTr("Search...")
width: footBar.middleLayout.width * 0.9
onAccepted: runSearch(searchInput.text)
}
footBar.visible: true
footBar.drawBorder: false
footBar.middleContent: Maui.TextField
{
id: searchInput
placeholderText: qsTr("Search...")
width: footBar.middleLayout.width * 0.9
Layout.margins: space.medium
Layout.fillWidth: true
onAccepted: runSearch(searchInput.text)
}
function refreshPics()
{
searchResults.list.refresh()
}
function refreshPics()
{
searchResults.list.refresh()
}
function runSearch(query)
{
if(query)
function runSearch(query)
{
currentQuery = query
searchResults.list.query = Q.Query.searchFor_.arg(currentQuery)
if(query)
{
currentQuery = query
searchResults.list.query = Q.Query.searchFor_.arg(currentQuery)
// var queries = query.split(",")
// for(var i in queries)
// {
// var res =[]
// res.push(pix.get(Q.Query.searchFor_.arg(queries[i])))
// res.push(tag.getUrls(query, true))
// populate(res)
// }
// var queries = query.split(",")
// for(var i in queries)
// {
// var res =[]
// res.push(pix.get(Q.Query.searchFor_.arg(queries[i])))
// res.push(tag.getUrls(query, true))
// populate(res)
// }
}
}
// function populate(data)
// {
// if(data.length > 0)
// for(var i in data)
// searchResults.model.append(data[i])
// }
}
// function populate(data)
// {
// if(data.length > 0)
// for(var i in data)
// searchResults.model.append(data[i])
// }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment