@ -44,8 +44,12 @@ Rectangle {
activeFocusOnPress: false
wrapMode: Text . WordWrap
text: qsTr ( " < p > This computer does not satisfy the minimum requirements for installing % 1 . < br / >
property var requiremen tsT ext: qsTr ( " < p > This computer does not satisfy the minimum requirements for installing % 1 . < br / >
Installation cannot continue . < / p > " ) . a r g ( B r a n d i n g . s t r i n g ( B r a n d i n g . V e r s i o n e d N a m e ) )
property var recommendationsText: qsTr ( " < p > This computer does not satisfy some of the recommended requirements for setting up % 1 . < br / >
Setup can continue , but some features might be disabled . < / p > " ) . a r g ( B r a n d i n g . s t r i n g ( B r a n d i n g . V e r s i o n e d N a m e ) )
text: config . requirementsModel . satisfiedMandatory ? recommendationsText : requirementsText
}
Rectangle {
@ -60,26 +64,34 @@ Rectangle {
Item {
width: 640
height: 35
/ / H i d e t h e s a t i s f i e d r e q u i r e m e n t s ; w e c o u l d d o t h a t w i t h
/ / a f i l t e r i n g m o d e l , b u t h e r e w e ' l l j u s t h i d e i t , b u t a l s o
/ / n e e d t o c o m p e n s a t e f o r t h e s p a c i n g b e t w e e n i t e m s .
height: ! satisfied ? 35 : - requirementsList . spacing
visible: ! satisfied
Column {
anchors.centerIn: parent
Rectangle {
implicitWidth: 640
implicitHeight: 35
border.color: mandatory ? "#228b22" : "#ff0000"
color: mandatory ? "#f0fff0" : "#ffc0cb"
implicitHeight: ! satisfied ? 35 : 0
/ / C o l o r s a n d i m a g e s b a s e d o n t h e t w o s a t i s f i e d - b o o l s :
/ / - i f s a t i s f i e d , t h e n g r e e n / o k
/ / - o t h e r w i s e i f m a n d a t o r y , t h e n r e d / s t o p
/ / - o t h e r w i s e , t h e n y e l l o w / w a r n i n g
border.color: satisfied ? "#228b22" : ( mandatory ? "#ff0000" : "#ffa411" )
color: satisfied ? "#f0fff0" : ( mandatory ? "#ffc0cb" : "#ffefd5" )
Image {
anchors.verticalCenter: parent . verticalCenter
anchors.right: parent . right
anchors.margins: 20
source: mandatory ? "qrc:/data/images/yes.svgz" : "qrc:/data/images/no.svgz"
source: satisfied ? "qrc:/data/images/yes.svgz" : ( mandatory ? "qrc:/data/images/no.svgz" : "qrc:/data/images/information.svgz" )
}
Text {
text: mandatory ? details : negatedText
text: satisfied ? details : negatedText
anchors.centerIn: parent
font.pointSize: 11
}
@ -89,6 +101,7 @@ Rectangle {
}
ListView {
id: requirementsList
anchors.fill: parent
spacing: 5
model: config . requirementsModel