// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5 import QtQuick 1.0 import "../Shared" ///////////////////film page/////////////////// Rectangle { id: film width: parent.width height: parent.height//-bottombarhome.height color: "#ffffff" property int episode_numb: -1 BackTopbar { id: navBar navBarTitle: "Кино" //publicModel.category_text onBackClicked: filmModel.clear() } Component { id: filmDelegate Item { id: delegateItem width: parent.width //anchors.top: navBar.bottom height: filmTop.height+filmName.height+10+filmType.height+20+filmCountry.height+20+filmivi.height+ filmimdb.height+filmkp.height+filmdesc.height+actTitle.height+10+filmact.height+navBar.height+70//-mir-mkr-mmr+10-mak+20 clip: true Row { anchors.top: parent.top anchors.topMargin: navBar.height height: 640//film.height-navBar.height-56 spacing: 13 Image { id: filmTop source: img_path width: film.width height: 300//parent.height*0.4 clip: true fillMode: Image.PreserveAspectCrop onStatusChanged: { if(status==Image.Ready) hideSpinner() else if(status==Image.Error) hideSpinner() } Image { source: "./images/play.png" clip: true anchors.centerIn:parent } MouseArea { anchors.fill: parent onClicked: { //---Если юзер нажал на play... hideTabbar() setOrientation("album") film.opacity = 0 if (prerollShowed) startThePrepreroll() else startThePreroll() } } } Text { id: filmName anchors.left: parent.left anchors.leftMargin: 16 anchors.top: filmTop.bottom anchors.topMargin: 10 text: title font.pointSize: 8 font.family: "NokiaSansMaps" color: "#e60040" font.bold: true width: film.width-20 wrapMode: Text.WordWrap } Text { id: filmType text: genre anchors.left: parent.left anchors.leftMargin: 16 anchors.top: filmName.bottom anchors.topMargin: 10 color: "#000000" font.family: "NokiaSansMaps" font.pointSize: 6 font.bold: true } Text { id: filmCountry text: country+", "+year anchors.left: parent.left anchors.leftMargin: 16 anchors.top: filmType.bottom //anchors.topMargin: 2 color: "#000000" font.family: "NokiaSansMaps" font.pointSize: 6.0 font.bold: true } Text { id: filmivi opacity: vsblivi anchors.left: parent.left anchors.leftMargin: 16 anchors.top: filmCountry.bottom anchors.topMargin: 10 text: "ivi.ru "+ivi_rating color: "#000000" font.family: "NokiaSansMaps" font.pointSize: 6.0 font.bold: true } Rectangle{ id: star opacity: vsblivi anchors.left: filmivi.right anchors.top: filmivi.top anchors.topMargin: 2 anchors.leftMargin: 10 width: 73 height: 13 color: "#bcbcbc" Rectangle{ anchors.left: parent.left width: ivi_star*12+(ivi_ratingint-1)*3 height: 12 color: "#e60040" } Image { source: "./images/star4.png" smooth: true } } Text { id: filmimdb opacity: vsblimdb anchors.left: parent.left anchors.leftMargin: 16 anchors.top: filmivi.bottom //anchors.topMargin: 2 text: "IMDb "+imdb_rating+"/10" color: "#000000" font.family: "NokiaSansMaps" font.pointSize: 6.0 font.bold: true } Text { id: filmkp opacity: vsblkp anchors.left: parent.left anchors.leftMargin: 16 anchors.top: filmimdb.bottom //anchors.topMargin: 2 text: "Кинопоиск.ру "+kp_rating+"/10" color: "#000000" font.family: "NokiaSansMaps" font.pointSize: 6.0 font.bold: true } Text { id: filmdesc anchors.left: parent.left anchors.leftMargin: 16 anchors.top: filmkp.bottom anchors.topMargin: 10 text: descr color: "#000000" font.family: "NokiaSansMaps" font.pointSize: 6.0 width: film.width-32 wrapMode: Text.WordWrap } Text { id: actTitle opacity: vsblactors anchors.left: parent.left anchors.leftMargin: 16 anchors.top: filmdesc.bottom anchors.topMargin: 10 width: film.width-32 text: "Актеры" color: "#000000" font.family: "NokiaSansMaps" font.pointSize: 6.0 font.bold: true } Text { id: filmact opacity: vsblactors anchors.left: parent.left anchors.leftMargin: 16 anchors.top: actTitle.top anchors.topMargin: 20 text: actors color: "#000000" font.family: "NokiaSansMaps" font.pointSize: 6.0 width: film.width-20 wrapMode: Text.WordWrap } } } } ListView { id: filmView anchors.fill: parent model: filmModel delegate: filmDelegate } } ///////////////////end film page///////////////////