2010-04-13 11:37:57 +02:00
|
|
|
import Qt 4.7
|
2010-01-07 12:14:35 +01:00
|
|
|
import Bauhaus 1.0
|
|
|
|
|
|
|
|
|
|
|
2010-02-04 14:45:20 +01:00
|
|
|
QWidget {
|
|
|
|
|
layout: QVBoxLayout {
|
|
|
|
|
topMargin: 0
|
|
|
|
|
bottomMargin: 0
|
|
|
|
|
leftMargin: 0
|
|
|
|
|
rightMargin: 0
|
|
|
|
|
spacing: 0
|
2010-02-04 16:03:45 +01:00
|
|
|
|
|
|
|
|
RectangleColorGroupBox {
|
2010-02-23 15:51:41 +01:00
|
|
|
finished: finishedNotify;
|
2010-02-04 16:03:45 +01:00
|
|
|
}
|
2010-02-04 14:45:20 +01:00
|
|
|
|
|
|
|
|
GroupBox {
|
|
|
|
|
|
|
|
|
|
finished: finishedNotify;
|
2010-04-08 09:31:26 +02:00
|
|
|
caption: qsTr("Rectangle")
|
2010-02-04 14:45:20 +01:00
|
|
|
|
|
|
|
|
layout: VerticalLayout {
|
2010-03-24 17:12:39 +01:00
|
|
|
rightMargin: 24
|
2010-02-04 14:45:20 +01:00
|
|
|
|
|
|
|
|
IntEditor {
|
|
|
|
|
backendValue: backendValues.radius
|
2010-03-25 14:59:54 +01:00
|
|
|
caption: qsTr("Radius")
|
2010-02-04 14:45:20 +01:00
|
|
|
baseStateFlag: isBaseState;
|
|
|
|
|
step: 1;
|
|
|
|
|
minimumValue: 0;
|
2010-02-23 17:15:17 +01:00
|
|
|
maximumValue: Math.max(1,(Math.min(backendValues.width.value,backendValues.height.value)-backendValues.border_width.value)/2)
|
2010-02-04 14:45:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IntEditor {
|
|
|
|
|
id: borderWidth;
|
|
|
|
|
backendValue: backendValues.border_width === undefined ? 0 : backendValues.border_width
|
|
|
|
|
|
2010-03-25 14:59:54 +01:00
|
|
|
caption: qsTr("Border")
|
2010-02-04 14:45:20 +01:00
|
|
|
baseStateFlag: isBaseState;
|
|
|
|
|
|
|
|
|
|
step: 1;
|
|
|
|
|
minimumValue: 0;
|
|
|
|
|
maximumValue: 100;
|
|
|
|
|
}
|
2010-01-07 12:14:35 +01:00
|
|
|
}
|
|
|
|
|
}
|
2010-02-04 16:03:45 +01:00
|
|
|
|
|
|
|
|
QScrollArea {
|
2010-02-26 15:36:27 +01:00
|
|
|
}
|
2010-01-07 12:14:35 +01:00
|
|
|
}
|
|
|
|
|
}
|