Files
qt-creator/share/qtcreator/qmldesigner/propertyeditor/Qt/FontGroupBox.qml

58 lines
1.4 KiB
QML
Raw Normal View History

import Qt 4.6
import Bauhaus 1.0
GroupBox {
id: FontGroupBox
caption: "Font";
layout: VerticalLayout {
QWidget {
layout: HorizontalLayout {
Label {
text: "Font"
}
QWidget {
id: parentWidget
minimumWidth: 180
minimumHeight: 26
QFontComboBox {
width: parentWidget.width
height: parentWidget.height
}
}
}
}
IntEditor {
maximumWidth: 200
caption: "Size"
slider: false
backendValue: backendValues.font_pointSize
baseStateFlag: isBaseState;
}
QWidget {
layout: HorizontalLayout {
Label {
text: "Style"
}
CheckBox {
text: "Bold";
backendValue: backendValues.font_bold
baseStateFlag: isBaseState;
checkable: true;
}
CheckBox {
text: "Italic";
backendValue: backendValues.font_italic
baseStateFlag: isBaseState;
checkable: true;
}
}
}
}
}