Changeset 165 for smplayer/trunk/src/prefinput.cpp
- Timestamp:
- May 16, 2014, 9:51:55 AM (12 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/prefinput.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 163
- Property svn:mergeinfo changed
-
smplayer/trunk/src/prefinput.cpp
r142 r165 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 3Ricardo Villalba <[email protected]>2 Copyright (C) 2006-201 Ricardo Villalba <[email protected]> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 173 173 setWheelFunctionCycle(pref->wheel_function_cycle); 174 174 setWheelFunctionSeekingReverse(pref->wheel_function_seeking_reverse); 175 175 176 } 176 177 … … 187 188 pref->wheel_function_cycle = wheelFunctionCycle(); 188 189 pref->wheel_function_seeking_reverse = wheelFunctionSeekingReverse(); 190 189 191 } 190 192 … … 266 268 } 267 269 268 void PrefInput::setWheelFunctionCycle( QFlags<Preferences::WheelFunctions>flags){270 void PrefInput::setWheelFunctionCycle( flags){ 269 271 wheel_function_seek->setChecked(flags.testFlag(Preferences::Seeking)); 270 272 wheel_function_volume->setChecked(flags.testFlag(Preferences::Volume)); … … 273 275 } 274 276 275 QFlags<Preferences::WheelFunctions>PrefInput::wheelFunctionCycle(){276 QFlags<Preferences::WheelFunctions>seekflags (QFlag ((int) Preferences::Seeking)) ;277 QFlags<Preferences::WheelFunctions>volumeflags (QFlag ((int) Preferences::Volume)) ;278 QFlags<Preferences::WheelFunctions>zoomflags (QFlag ((int) Preferences::Zoom)) ;279 QFlags<Preferences::WheelFunctions>speedflags (QFlag ((int) Preferences::ChangeSpeed)) ;280 QFlags<Preferences::WheelFunctions>out (QFlag (0));277 PrefInput::wheelFunctionCycle(){ 278 seekflags (QFlag ((int) Preferences::Seeking)) ; 279 volumeflags (QFlag ((int) Preferences::Volume)) ; 280 zoomflags (QFlag ((int) Preferences::Zoom)) ; 281 speedflags (QFlag ((int) Preferences::ChangeSpeed)) ; 282 out (QFlag (0)); 281 283 if(wheel_function_seek->isChecked()){ 282 284 out = out | seekflags; … … 338 340 tr("Select the action for the mouse wheel.") ); 339 341 342 343 344 345 346 347 348 349 350 351 340 352 addSectionTitle(tr("Mouse wheel functions")); 341 353 … … 351 363 setWhatsThis(wheel_function_speed, tr("Change speed"), 352 364 tr("Check it to enable changing speed as one function.") ); 353 354 setWhatsThis(wheel_function_seeking_reverse_check, tr("Reverse mouse wheel seeking"),355 tr("Check it to seek in the opposite direction.") );356 357 365 } 358 366
Note:
See TracChangeset
for help on using the changeset viewer.
