2015-11-06 21:53:26 +00:00
|
|
|
import QtQuick 2.5
|
|
|
|
import QtQuick.Layouts 1.1
|
|
|
|
|
2015-11-06 21:54:54 +00:00
|
|
|
GridLayout {
|
2015-11-06 21:53:26 +00:00
|
|
|
id: themetest
|
2015-11-06 21:54:54 +00:00
|
|
|
columns: 2
|
2015-11-06 21:53:26 +00:00
|
|
|
|
2015-11-06 21:54:54 +00:00
|
|
|
Label {
|
|
|
|
Layout.columnSpan: 2
|
|
|
|
Layout.fillHeight: true
|
|
|
|
text: "Theme Information"
|
2015-11-06 21:53:26 +00:00
|
|
|
}
|
|
|
|
|
2015-11-06 21:54:54 +00:00
|
|
|
FontMetrics {
|
|
|
|
id: fm
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
text: "units.gridUnit:"
|
|
|
|
}
|
|
|
|
Label {
|
|
|
|
text: units.gridUnit
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
text: "units.devicePixelRatio:"
|
|
|
|
}
|
|
|
|
Label {
|
|
|
|
text: units.devicePixelRatio
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
text: "FontMetrics pointSize:"
|
|
|
|
}
|
|
|
|
Label {
|
|
|
|
text: fm.font.pointSize
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
text: "FontMetrics pixelSize:"
|
|
|
|
}
|
|
|
|
Label {
|
|
|
|
text: fm.height
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
text: "hand-computed devicePixelRatio:"
|
|
|
|
}
|
|
|
|
Label {
|
|
|
|
text: fm.height / fm.font.pointSize
|
|
|
|
}
|
2015-11-06 21:53:26 +00:00
|
|
|
|
2015-11-06 21:57:01 +00:00
|
|
|
Text {
|
|
|
|
text: "Text item pixelSize:"
|
|
|
|
}
|
|
|
|
Text {
|
|
|
|
text: font.pixelSize
|
|
|
|
}
|
|
|
|
|
|
|
|
Text {
|
|
|
|
text: "Text item pointSize:"
|
|
|
|
}
|
|
|
|
Text {
|
|
|
|
text: font.pointSize
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
2015-11-06 21:54:54 +00:00
|
|
|
Layout.columnSpan: 2
|
|
|
|
Layout.fillHeight: true
|
2015-11-06 21:53:26 +00:00
|
|
|
}
|
|
|
|
}
|