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));
55 SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
56 color : myPalette.window;
61 height: paintedHeight+5;
62 anchors.right: parent.right
63 anchors.left: parent.left
64 anchors.top: parent.top
66 transformOrigin: Item.Left
72 text: qsTr("Dictionary file: not selected")
73 height: paintedHeight+5;
74 anchors.top: parent.top
75 anchors.right: browseButton.left
76 anchors.left: parent.left
78 transformOrigin: Item.Left
87 textInButton: qsTr("Browse");
88 anchors.top: parent.top
90 anchors.right: parent.right
92 onClicked: rectangle1.browseButtonClicked();
98 anchors.bottom: parent.bottom
99 textInButton: qsTr("Save")
100 anchors.right: parent.right
101 anchors.left: parent.left
102 onClicked: rectangle1.saveButtonClicked();
108 when: newPlugin==true
109 PropertyChanges { target: textInfo; opacity: 0}
110 PropertyChanges { target: textPath; opacity: 1}
111 PropertyChanges { target: browseButton; opacity: 1 }