Debian Codegraph @

src/xmpsolve/PolyInputField.qml

raw
1 import QtQuick 2.1
2 import QtQuick.Controls 1.0
3
4 Row {
5
6 signal solveRequested(string polyText);
7
8 spacing: 16
9 width: parent.width
10 height: 32
11
12 TextField {
13 id: polyInput
14 placeholderText: "Insert a polynomial here"
15 height: solveButton.height
16 width: parent.width - 100
17 }
18
19 Button {
20 id: solveButton
21 text: "Solve"
22 width: 84
23
24 onClicked: {
25 solveRequested(polyInput.text);
26 }
27 }
28
29 }