Advertisement
Guest User

Untitled

a guest
Aug 16th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 2.74 KB | None | 0 0
  1.     Component {
  2.         id: pk
  3.  
  4.         Item {
  5.             width: 600
  6.             height: 200
  7.             Item {
  8.                 width: parent.width * 0.9
  9.                 height: parent.height * 0.9
  10.                 anchors.centerIn: parent
  11.                 Material.elevation: 24
  12.  
  13.                 Rectangle {
  14.                     color: "white"
  15.                     opacity: 0.11
  16.                     anchors.fill: parent
  17.                 }
  18.  
  19.                 Item {
  20.                     width: parent.width * 0.9
  21.                     height: parent.height * 0.9
  22.                     anchors.centerIn: parent
  23.  
  24.                     Column {
  25.                         Row {
  26.                             Label {
  27.                                 color: "white"
  28.                                 font.bold: true
  29.                                 text: pkName
  30.                             }
  31.                             Label {
  32.                                 color: "white"
  33.                                 text: " - " + pkVersion
  34.                             }
  35.                         }
  36.                         Row {
  37.                             Label {
  38.                                 color: "white"
  39.                                 text: pkProject
  40.                             }
  41.                         }
  42.                     }
  43.                     Button {
  44.                         id: info
  45.                         anchors.bottom: parent.bottom
  46.                         anchors.bottomMargin: 1
  47.  
  48.                         anchors.right: view.left
  49.                         anchors.rightMargin: 10
  50.  
  51.                         text: "View Info"
  52.                         onClicked: {
  53.                             root.moreInfo(pkProject, pkName);
  54.                         }
  55.                     }
  56.  
  57.                     Button {
  58.                         id: view
  59.                         anchors.bottom: parent.bottom
  60.                         anchors.bottomMargin: 1
  61.  
  62.                         anchors.right: install.left
  63.                         anchors.rightMargin: 10
  64.  
  65.                         text: "View on OBS"
  66.                         onClicked: {
  67.                             dialog.openOBS(pkName, pkProject);
  68.                         }
  69.                     }
  70.  
  71.                     Button {
  72.                         id: install
  73.                         anchors.bottom: parent.bottom
  74.                         anchors.right: parent.right
  75.                         anchors.rightMargin: 1
  76.                         anchors.bottomMargin: 1
  77.                         text: "Install"
  78.                         onClicked: {
  79.                             dialog.show(pkName, pkProject, pkDistro);
  80.                         }
  81.                     }
  82.                 }
  83.             }
  84.         }
  85.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement