Advertisement
Guest User

Untitled

a guest
Feb 5th, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import QtQuick 1.1
  2.  
  3. Rectangle {
  4.  
  5.     signal inputsChanged(string one, string two);
  6.  
  7.     function updateAnswer(text) {
  8.         c.text = text;
  9.     }
  10.  
  11.     id: container
  12.     width: 200
  13.     height: 200
  14.     color: "white"    
  15.     Column {
  16.         anchors.centerIn: parent
  17.         Row {
  18.             TextInput {
  19.                 width: container.width - 40 ;
  20.                 id: a
  21.                 fillColor: "lightgray"
  22.                 font.bold: true
  23.                 objectName: "a"
  24.                 onAccepted: inputsChanged(a.text, b.text)
  25.             }
  26.         }
  27.         spacing:10
  28.         Row {
  29.             TextInput {
  30.                 width: container.width - 40 ;
  31.                 id: b
  32.                 fillColor: "lightgray"
  33.                 font.bold: true
  34.                 objectName: "b"
  35.                 onAccepted: inputsChanged(a.text, b.text)
  36.             }
  37.         }
  38.         Row {
  39.             TextInput {
  40.                 width: container.width - 40 ;
  41.                 id: c
  42.                 objectName: "c"
  43.                 fillColor: "lightgray"
  44.                 font.bold: true
  45.             }
  46.         }
  47.     }
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement