Advertisement
Guest User

Untitled

a guest
Feb 4th, 2014
58
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.                 onAccepted: inputsChanged(a.text, b.text)
  24.             }
  25.         }
  26.         spacing:10
  27.         Row {
  28.             TextInput {
  29.                 width: container.width - 40 ;
  30.                 id: b
  31.                 fillColor: "lightgray"
  32.                 font.bold: true
  33.                 onAccepted: inputsChanged(a.text, b.text)
  34.             }
  35.         }
  36.         Row {
  37.             TextInput {
  38.                 width: container.width - 40 ;
  39.                 id: c
  40.                 fillColor: "lightgray"
  41.                 font.bold: true
  42.             }
  43.         }
  44.     }
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement