<file>button/buttonCenter.png</file>
<file>button/buttonLeft.png</file>
<file>button/buttonR.png</file>
- <file>lineEdit/ramkaL.png</file>
- <file>lineEdit/ramkaR.png</file>
- <file>lineEdit/ramkaC.png</file>
</qresource>
</RCC>
Rectangle {
id: item
- width: 400;
- height: 400;
+ //width: 400;
+ // height: 400;
opacity: 1
anchors.fill: parent
anchors.horizontalCenter: parent.horizontalCenter
textFormat: Text.RichText
text: "Maemo/Meego Multilingual Dictionary <br> Copyright 2006-2010, Comarch S.A. <br> <a href=\"http://mdictionary.garage.maemo.org\"> http://mdictionary.garage.maemo.org</a>"
- anchors.horizontalCenterOffset: 1
+ anchors.horizontalCenterOffset: 0
onLinkActivated: linkClicked(link);
}
onLinkActivated: linkClicked(link);
}
- MyTextLineEdit{
- id: myTextLineEdit
- x: 50
- y: 32
- width: 120
+ Button{
+ x:100;
+ y:100;
+ width: 500
height: 30
+ textInButton: "ala ma kota"
}
- /*SearchBarWidget {
+ SearchBarWidget {
id: searchbarwidget1
- x: 0
- y: 32
+ y:50;
+ width: item.width;
+ height: 30;
}
- */
-
}
radius: parent.height*.4;
color: "black";
opacity: 0
- width: parent.width//((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60))
+ width: ((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60))
height: parent.height
}
Image {
id: image1
- width: (35*parent.height)/107
+ smooth: true
+ width: (35*parent.height)/107 +1
height: parent.height
anchors.left: parent.left
anchors.leftMargin: (parent.width - ((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60)))/2
Image {
id: image3
- width: ((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60)) - ((70*parent.height)/107)
+ smooth: true
+ width: (((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60)) - ((70*parent.height)/107))+1
height: parent.height
anchors.horizontalCenter: parent.horizontalCenter
source: "qrc:/button/buttonCenter.png"
Image {
id: image2
- width: (35*parent.height)/107
+ smooth: true
+ width: (35*parent.height)/107 +1
height: parent.height
anchors.right: parent.right
anchors.rightMargin: (parent.width - ((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60)))/2
property alias pathToIcon: image.source;
signal clicked;
-
- Image {
- id: image
- z:1;
- anchors.centerIn: parent
- width: rectangle.width;
- height: rectangle.height;
- }
-
+ radius: 50
MouseArea {
id: mouseArea
anchors.centerIn: parent;
- width: rectangle.width + (70*parent.height)/107;
+ width: rectangle.width
height: rectangle.height;
onClicked: {
rectangle.clicked();
}
Image {
+ id: image
+ z:4;
+ anchors.centerIn: parent
+ width: rectangle.width;
+ height: rectangle.height;
+ }
+
+ Image {
id: image1
- width: (35*parent.height)/107
+ z: 1
+ smooth: true
+ width: (35*parent.height)/107 +1
height: parent.height
anchors.left: parent.left
- anchors.leftMargin: - (35*parent.height)/107
source: "qrc:/button/buttonLeft.png"
}
Image {
id: image3
- width: parent.width
+ z: 1
+ smooth: true
+ width: parent.width - (70*parent.height)/107 +1
height: parent.height
anchors.horizontalCenter: parent.horizontalCenter
source: "qrc:/button/buttonCenter.png"
+
}
Image {
id: image2
- width: (35*parent.height)/107
+ z: 1
+ smooth: true
+ width: (35*parent.height)/107 +1
height: parent.height
anchors.right: parent.right
- anchors.rightMargin: - (35*parent.height)/107
source: "qrc:/button/buttonR.png"
}
Rectangle {
id: shade
+ z: 4
anchors.centerIn: parent;
color: "black";
radius: 20;
opacity: 1;
- width: rectangle.width+(70*parent.height)/107;
+ width: rectangle.width;
height: rectangle.height;
}
Rectangle {
id: rectangle1
radius: 10
- border.color: "#000666"
-
+ border.color: "#000666";
TextInput {
id: text_input1
- width: rectangle1.width -20
+ width: rectangle1.width-20
height: rectangle1.height*0.6;
text: "textInput"
transformOrigin: Item.Left
import Qt 4.7
Rectangle {
- id: rectangle1
- width: 500
- height: 40
+ id: searchBarWidget
SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
color : myPalette.window;
- TextInput {
- id: text_input
- y: 10
- width: 350
- height: 20
+ MyTextLineEdit{
+ id: inputSearchText
+ width: (searchBarWidget.width - (searchBarWidget.height*3.5 + searchButton.width + 9));
+ height: searchBarWidget.height
+ anchors.left: searchBarWidget.left
+ IconButton {
+ id: clearButton;
+ width: inputSearchText.height-6;
+ height: inputSearchText.height-6;
+ anchors.rightMargin: 4
+ anchors.right: parent.right
+ anchors.verticalCenter: parent.verticalCenter
+ enabled: true;
+ pathToIcon: "/home/jakub/go-previous.png";
+ }
+ }
+
+ Item {
+ id: buttonsBox
+ width: searchBarWidget.height*3.5 + searchButton.width + 9
+ height: searchBarWidget.height
+ anchors.right: parent.right
+ anchors.verticalCenter: parent.verticalCenter
- color: "#000000"
- text: "textInput"
- anchors.left: parent.left
- anchors.leftMargin: 15
- font.pixelSize: 12
+ Button {
+ id: searchButton
+ width: 100
+ height: searchBarWidget.height;
+ anchors.rightMargin: 3
+ anchors.right: historyButton3.left
+ anchors.verticalCenter: parent.verticalCenter
+ textInButton: "Search"
+ }
IconButton {
- id: iconbutton;
- width:20;
- height:20;
+ id: historyButton1;
+ width: searchBarWidget.height
+ height: searchBarWidget.height
anchors.right: parent.right
+ anchors.verticalCenter: parent.verticalCenter
+ enabled: true;
+ pathToIcon: "/home/jakub/go-previous.png";
+ }
+
+ IconButton {
+ id: historyButton2;
+ width: searchBarWidget.height
+ height: searchBarWidget.height
+ anchors.rightMargin: 3
+ anchors.right: historyButton1.left
+ anchors.verticalCenter: parent.verticalCenter
+ enabled: true;
+ pathToIcon: "/home/jakub/go-previous.png";
+ }
+
+ IconButton {
+ id: historyButton3;
+ width: searchBarWidget.height
+ height: searchBarWidget.height
+ anchors.rightMargin: 3
+ anchors.right: historyButton2.left
+ anchors.verticalCenter: parent.verticalCenter
enabled: true;
pathToIcon: "/home/jakub/go-previous.png";
}