// PRIVATE private void settingsChanged() { enabled = QSettings.getInstance().get <bool>(QSetting.ChildrenCountShow); showComponentDuringPlayMode = QSettings.getInstance().get <bool>(QSetting.ChildrenCountShowDuringPlayMode); QHierarchySize labelSize = (QHierarchySize)QSettings.getInstance().get <int>(QSetting.ChildrenCountLabelSize); labelStyle.normal.textColor = QSettings.getInstance().getColor(QSetting.ChildrenCountLabelColor); labelStyle.fontSize = labelSize == QHierarchySize.Normal ? 8 : 9; rect.width = labelSize == QHierarchySize.Normal ? 17 : 22; }
// PRIVATE private void settingsChanged() { enabled = QSettings.getInstance().get <bool>(QSetting.VerticesAndTrianglesShow); showComponentDuringPlayMode = QSettings.getInstance().get <bool>(QSetting.VerticesAndTrianglesShowDuringPlayMode); calculateTotalCount = QSettings.getInstance().get <bool>(QSetting.VerticesAndTrianglesCalculateTotalCount); showTrianglesCount = QSettings.getInstance().get <bool>(QSetting.VerticesAndTrianglesShowTriangles); showVerticesCount = QSettings.getInstance().get <bool>(QSetting.VerticesAndTrianglesShowVertices); verticesLabelColor = QSettings.getInstance().getColor(QSetting.VerticesAndTrianglesVerticesLabelColor); trianglesLabelColor = QSettings.getInstance().getColor(QSetting.VerticesAndTrianglesTrianglesLabelColor); QHierarchySize labelSize = (QHierarchySize)QSettings.getInstance().get <int>(QSetting.VerticesAndTrianglesLabelSize); labelStyle.fontSize = labelSize == QHierarchySize.Big ? 9 : 8; rect.width = labelSize == QHierarchySize.Big ? 33 : 25; }