fixed naming bug in qml
This commit is contained in:
+11
-10
@@ -68,11 +68,11 @@ MyStackViewPage {
|
||||
Layout.leftMargin: 32
|
||||
text: "Supersample Filtering"
|
||||
}
|
||||
MyToggleButton {
|
||||
id: steamvrNewProfileIncludeReprojectionSettingsg
|
||||
Layout.leftMargin: 32
|
||||
text: "Reprojection Settings"
|
||||
}
|
||||
//MyToggleButton {
|
||||
// id: steamvrNewProfileIncludeReprojectionSettingsg
|
||||
// Layout.leftMargin: 32
|
||||
// text: "Reprojection Settings"
|
||||
//}
|
||||
}
|
||||
onClosed: {
|
||||
if (okClicked) {
|
||||
@@ -80,13 +80,14 @@ MyStackViewPage {
|
||||
steamvrMessageDialog.showMessage("Create New Profile", "ERROR: Empty profile name.")
|
||||
} else if (!steamvrNewProfileIncludeSupersampling.checked
|
||||
&& !steamvrNewProfileIncludeSupersampleFiltering.checked
|
||||
&& !steamvrNewProfileIncludeReprojectionSettingsg.checked) {
|
||||
) {
|
||||
steamvrMessageDialog.showMessage("Create New Profile", "ERROR: Nothing included.")
|
||||
} else {
|
||||
SteamVRTabController.addSteamVRProfile(steamvrNewProfileName.text,
|
||||
steamvrNewProfileIncludeSupersampling.checked,
|
||||
steamvrNewProfileIncludeSupersampleFiltering.checked,
|
||||
steamvrNewProfileIncludeReprojectionSettingsg.checked)
|
||||
steamvrNewProfileIncludeSupersampleFiltering.checked
|
||||
// steamvrNewProfileIncludeReprojectionSettingsg.checked
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -95,7 +96,7 @@ MyStackViewPage {
|
||||
steamvrNewProfileName.text = ""
|
||||
steamvrNewProfileIncludeSupersampling.checked = false
|
||||
steamvrNewProfileIncludeSupersampleFiltering.checked = false
|
||||
steamvrNewProfileIncludeReprojectionSettingsg.checked = false
|
||||
//steamvrNewProfileIncludeReprojectionSettingsg.checked = false
|
||||
open()
|
||||
}
|
||||
}
|
||||
@@ -397,7 +398,7 @@ MyStackViewPage {
|
||||
//steamvrAllowInterleavedReprojectionToggle.checked = SteamVRTabController.allowInterleavedReprojection
|
||||
//steamvrAllowAsyncReprojectionToggle.checked = SteamVRTabController.allowAsyncReprojection
|
||||
//steamvrForceReprojectionToggle.checked = SteamVRTabController.forceReprojection
|
||||
steamvrMotionSmoothingToggle.checked = SteamVRTabController.allowMotionSmoothing
|
||||
steamvrMotionSmoothingToggle.checked = SteamVRTabController.motionSmoothing
|
||||
reloadSteamVRProfiles()
|
||||
}
|
||||
|
||||
|
||||
@@ -75,6 +75,7 @@ void SteamVRTabController::reloadSteamVRProfiles()
|
||||
entry.supersampleFiltering
|
||||
= settings->value( "supersampleFiltering", true ).toBool();
|
||||
}
|
||||
entry.motionSmooth = settings->value("motionSmooth", true).toBool();
|
||||
/*
|
||||
entry.includesReprojectionSettings
|
||||
= settings->value( "includesReprojectionSettings", false ).toBool();
|
||||
@@ -627,6 +628,7 @@ void SteamVRTabController::addSteamVRProfile( QString name,
|
||||
{
|
||||
profile->supersampleFiltering = m_allowSupersampleFiltering;
|
||||
}
|
||||
profile->motionSmooth = m_motionSmoothing;
|
||||
/*
|
||||
profile->includesReprojectionSettings = includeReprojectionSettings;
|
||||
if ( includeReprojectionSettings )
|
||||
@@ -654,6 +656,7 @@ void SteamVRTabController::applySteamVRProfile( unsigned index )
|
||||
{
|
||||
setAllowSupersampleFiltering( profile.supersampleFiltering );
|
||||
}
|
||||
setMotionSmoothing(profile.motionSmooth);
|
||||
/*
|
||||
if ( profile.includesReprojectionSettings )
|
||||
{
|
||||
|
||||
@@ -19,6 +19,7 @@ struct SteamVRProfile
|
||||
|
||||
bool includesSupersampleFiltering = false;
|
||||
bool supersampleFiltering = false;
|
||||
bool motionSmooth = false;
|
||||
|
||||
//bool includesReprojectionSettings = false;
|
||||
//bool asynchronousReprojection = true;
|
||||
|
||||
Reference in New Issue
Block a user