Ignore:
Timestamp:
May 15, 2014, 7:53:54 PM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update vendor to 0.8.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/prefinput.cpp

    r140 r163  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    173173        setWheelFunctionCycle(pref->wheel_function_cycle);
    174174        setWheelFunctionSeekingReverse(pref->wheel_function_seeking_reverse);
     175        delay_left_check->setChecked(pref->delay_left_click);
    175176}
    176177
     
    187188        pref->wheel_function_cycle = wheelFunctionCycle();
    188189        pref->wheel_function_seeking_reverse = wheelFunctionSeekingReverse();
     190        pref->delay_left_click = delay_left_check->isChecked();
    189191}
    190192
     
    266268}
    267269
    268 void PrefInput::setWheelFunctionCycle(QFlags<Preferences::WheelFunctions> flags){
     270void PrefInput::setWheelFunctionCycle(Preferences::WheelFunctions flags){
    269271        wheel_function_seek->setChecked(flags.testFlag(Preferences::Seeking));
    270272        wheel_function_volume->setChecked(flags.testFlag(Preferences::Volume));
     
    273275}
    274276
    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));
     277Preferences::WheelFunctions PrefInput::wheelFunctionCycle(){
     278        Preferences::WheelFunctions seekflags (QFlag ((int) Preferences::Seeking)) ;
     279        Preferences::WheelFunctions volumeflags (QFlag ((int) Preferences::Volume)) ;
     280        Preferences::WheelFunctions zoomflags (QFlag ((int) Preferences::Zoom)) ;
     281        Preferences::WheelFunctions speedflags (QFlag ((int) Preferences::ChangeSpeed)) ;
     282        Preferences::WheelFunctions out (QFlag (0));
    281283        if(wheel_function_seek->isChecked()){
    282284                out = out | seekflags;
     
    338340                tr("Select the action for the mouse wheel.") );
    339341
     342        setWhatsThis(delay_left_check, tr("Don't trigger the left click function with a double click"),
     343                tr("If this option is enabled when you double click on the "
     344            "video area only the double click function will be triggered. "
     345            "The left click action won't be activated.") + " "+
     346                tr("By enabling this option the left click is delayed %1 milliseconds "
     347           "because it's necessary to wait that time to know if there's a double click or not.").arg(qApp->doubleClickInterval()+10) );
     348
     349        setWhatsThis(wheel_function_seeking_reverse_check, tr("Reverse mouse wheel seeking"),
     350                tr("Check it to seek in the opposite direction.") );
     351
    340352        addSectionTitle(tr("Mouse wheel functions"));
    341353
     
    351363        setWhatsThis(wheel_function_speed, tr("Change speed"),
    352364                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 
    357365}
    358366
Note: See TracChangeset for help on using the changeset viewer.