4 property bool newPlugin:false;
6 function setInfo(string){
7 textInfo.text = string;
9 function setPath(string){
10 textPath.text = string;
12 function setButtonText(string){
13 saveButton.textInButton=string;
15 function setNew(bool){
19 signal saveButtonClicked();
20 signal browseButtonClicked();
21 signal heightChange(int intiger);
25 height: newPlugin ? textPath.height+50 : textInfo.height+50
28 heightChange((newPlugin ? textPath.height+50 : textInfo.height+50));
29 //console.log( "debug" + (newPlugin ? textPath.paintedHeight+55 : textInfo.paintedHeight+55));
34 SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
35 color : myPalette.window;
41 height: paintedHeight+5;
42 anchors.right: parent.right
43 anchors.left: parent.left
44 anchors.top: parent.top
46 transformOrigin: Item.Left
52 text: qsTr("Dictionary file: not selected")
53 height: paintedHeight+5;
54 anchors.top: parent.top
55 anchors.right: browseButton.left
56 anchors.left: parent.left
58 transformOrigin: Item.Left
67 textInButton: qsTr("Browse");
68 anchors.top: parent.top
70 anchors.right: parent.right
72 onClicked: rectangle1.browseButtonClicked();
78 anchors.bottom: parent.bottom
79 textInButton: qsTr("Save")
80 anchors.right: parent.right
81 anchors.left: parent.left
82 onClicked: rectangle1.saveButtonClicked();
89 PropertyChanges { target: textInfo; opacity: 0}
90 PropertyChanges { target: textPath; opacity: 1}
91 PropertyChanges { target: browseButton; opacity: 1 }