Added menu entries and shortcuts to increase and decrease font sizes.

This commit is contained in:
Filippo Scognamiglio
2014-07-14 00:53:17 +02:00
parent a96f8ec220
commit b9de57aec1
3 changed files with 38 additions and 5 deletions
+3 -3
View File
@@ -76,12 +76,12 @@ Tab{
value: updateIndex()
onValueChanged: {
if(!enabled) return; //Ugly and hacky solution. Look for a better solution.
shadersettings.fontScalingIndexes[shadersettings.rasterization] = value;
shadersettings.handleFontChanged();
shadersettings.setScalingIndex(value);
}
function updateIndex(){
value = shadersettings.fontScalingIndexes[shadersettings.rasterization];
value = shadersettings.getScalingIndex();
}
Component.onCompleted: shadersettings.fontScalingChanged.connect(updateIndex);
}
Text{
text: shadersettings.fontScalingList[scalingChanger.value].toFixed(2)