1 Star 0 Fork 6

haidiyoushen / Offline-small-search

forked from zjzdy / Offline-small-search 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mark.qml 3.50 KB
一键复制 编辑 原始数据 按行查看 历史
zjzdy 提交于 2016-11-06 16:31 . V2.3.0_beta1
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.3
Rectangle {
id: rectangle2
width: 720
height: 1280
color: "#f6f6f6"
property real a_max: Math.max(width,height)
property real a_min: Math.min(width,height)
property real a_pd: 0
property real a_sqrt: Math.min(Math.sqrt(a_max/1280*a_min/720),a_pd/12)
z: 0
Rectangle {
z: 1
id: rectangle3
height: 100*Math.min(rectangle2.a_max/1280,a_pd/12)
color: "#f0f0f0"
anchors.right: parent.right
anchors.rightMargin: 0
anchors.left: parent.left
anchors.leftMargin: 0
anchors.top: parent.top
anchors.topMargin: 0
Text {
id: text8
text: qsTr("收藏夹")
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: 45*Math.min(rectangle2.a_max/1280,a_pd/12)
}
Image {
id: image1
width: height
anchors.left: parent.left
anchors.leftMargin: 10*rectangle2.a_min/720
anchors.bottom: parent.bottom
anchors.top: parent.top
source: "qrc:/image/icon_back.png"
MouseArea {
id: mouseArea1
anchors.leftMargin: -10*rectangle2.a_min/720
anchors.rightMargin: -10*rectangle2.a_min/720
anchors.fill: parent
onClicked: {
main_widget.show_back()
}
}
}
}
ListView {
id: listView1
anchors.top: rectangle3.bottom
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.topMargin: 0
model: mark_obj
z: 0
delegate: Item {
z: -1
width: rectangle2.width
height: 200*Math.min(rectangle2.a_max/1280,a_pd/12)
Rectangle{
anchors.fill: parent
anchors.bottomMargin: 3*Math.min(rectangle2.a_max/1280,a_pd/12)
Text {
text: model.modelData.str
anchors.fill: parent
anchors.leftMargin: 30*rectangle2.a_min/720
anchors.rightMargin: 15*rectangle2.a_min/720
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignTop
anchors.verticalCenter: parent.verticalCenter
maximumLineCount: 4
elide: Text.ElideLeft
wrapMode: Text.Wrap
font.pixelSize: 35*Math.min(rectangle2.a_max/1280,a_pd/12)
}
MouseArea {
anchors.fill: parent
onClicked: main_widget.show_result(model.modelData.url)
}
}
Rectangle {
height: 3*Math.min(rectangle2.a_max/1280,a_pd/12)
color: "#bbbbbb"
border.width: 0
anchors.right: parent.right
anchors.rightMargin: 0
anchors.left: parent.left
anchors.leftMargin: 0
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
}
}
}
}
C++
1
https://gitee.com/haidiyoushen/Offline-small-search.git
git@gitee.com:haidiyoushen/Offline-small-search.git
haidiyoushen
Offline-small-search
Offline-small-search
master

搜索帮助