1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/zjzdy-Offline-small-search

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
mark.qml 3.5 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
zjzdy Отправлено 06.11.2016 11:31 52fe3b3
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
}
}
}
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/zjzdy-Offline-small-search.git
git@api.gitlife.ru:oschina-mirror/zjzdy-Offline-small-search.git
oschina-mirror
zjzdy-Offline-small-search
zjzdy-Offline-small-search
master