[vlmc-devel] ProjectManager: Declare FPS as a clamped value
Hugo Beauzée-Luyssen
git at videolan.org
Sat Feb 8 00:47:07 CET 2014
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sat Feb 8 01:38:56 2014 +0200| [fe6d78333301ee2468d02217601400baf6911698] | committer: Hugo Beauzée-Luyssen
ProjectManager: Declare FPS as a clamped value
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=fe6d78333301ee2468d02217601400baf6911698
---
src/Project/ProjectManager.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index 646aab6..42fa172 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -51,9 +51,10 @@ ProjectManager::ProjectManager() : m_projectFile( NULL ), m_needSave( false )
//If the variable was empty, it will return a list with one empty string in it.
m_recentsProjects.removeAll( "" );
- SettingValue *fps = VLMC_CREATE_PROJECT_DOUBLE( "video/VLMCOutputFPS", 29.97,
+ SettingValue *fps = VLMC_CREATE_PROJECT_VAR( SettingValue::Double, "video/VLMCOutputFPS", 29.97,
QT_TRANSLATE_NOOP( "PreferenceWidget", "Output video FPS" ),
- QT_TRANSLATE_NOOP( "PreferenceWidget", "Frame Per Second used when previewing and rendering the project" ) );
+ QT_TRANSLATE_NOOP( "PreferenceWidget", "Frame Per Second used when previewing and rendering the project" ),
+ SettingValue::Clamped );
fps->setLimits( 0.1, 120.0 );
SettingValue *width = VLMC_CREATE_PROJECT_VAR( SettingValue::Int, "video/VideoProjectWidth", 480,
QT_TRANSLATE_NOOP( "PreferenceWidget", "Video width" ),
More information about the Vlmc-devel
mailing list