6 height: newPlugin ? textPath.height+50 : textInfo.height+50
9 property int focusIndex:-1;
10 property bool newPlugin:false;
12 function setInfo(string){
13 textInfo.text = string;
15 function setPath(string){
16 textPath.text = string;
18 function setButtonText(string){
19 saveButton.textInButton=string;
21 function setNew(bool){
27 browseButton.focus=true;
28 if(!browseButton.opacity)
32 saveButton.focus = true
33 if(!saveButton.enabled)
42 signal saveButtonClicked();
43 signal browseButtonClicked();
44 signal heightChange(int intiger);
52 heightChange((newPlugin ? textPath.height+50 : textInfo.height+50));
53 //console.log( "debug" + (newPlugin ? textPath.paintedHeight+55 : textInfo.paintedHeight+55));
56 SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
57 color : myPalette.window;
62 height: paintedHeight+5;
63 anchors.right: parent.right
64 anchors.left: parent.left
65 anchors.top: parent.top
67 transformOrigin: Item.Left
73 text: qsTr("Dictionary file: not selected")
74 height: paintedHeight+5;
75 anchors.top: parent.top
76 anchors.right: browseButton.left
77 anchors.left: parent.left
79 transformOrigin: Item.Left
88 textInButton: qsTr("Browse");
89 anchors.top: parent.top
91 anchors.right: parent.right
93 onClicked: rectangle1.browseButtonClicked();
99 anchors.bottom: parent.bottom
100 textInButton: qsTr("Save")
101 anchors.right: parent.right
102 anchors.left: parent.left
103 onClicked: rectangle1.saveButtonClicked();
109 when: newPlugin==true
110 PropertyChanges { target: textInfo; opacity: 0}
111 PropertyChanges { target: textPath; opacity: 1}
112 PropertyChanges { target: browseButton; opacity: 1 }