Ignore:
Timestamp:
Dec 22, 2011, 6:27:52 PM (14 years ago)
Author:
Silvan Scherrer
Message:

smplayer vendor udate

File:
1 edited

Legend:

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

    r90 r118  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org>
     2    Copyright (C) 2006-2011 Ricardo Villalba <rvm@escomposlinux.org>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    180180
    181181        setUpdateWhileDragging(pref->update_while_seeking);
     182        setRelativeSeeking(pref->relative_seeking);
    182183
    183184        setDefaultFont(pref->default_font);
     
    242243
    243244        pref->update_while_seeking = updateWhileDragging();
     245        pref->relative_seeking= relativeSeeking();
    244246
    245247        pref->default_font = defaultFont();
     
    413415bool PrefInterface::updateWhileDragging() {
    414416        return (timeslider_behaviour_combo->currentIndex() == 0);
     417}
     418
     419void PrefInterface::setRelativeSeeking(bool b) {
     420        relative_seeking_button->setChecked(b);
     421        absolute_seeking_button->setChecked(!b);
     422}
     423
     424bool PrefInterface::relativeSeeking() {
     425        return relative_seeking_button->isChecked();
    415426}
    416427
     
    549560        tr("Select what to do when dragging the time slider.") );
    550561
     562        setWhatsThis(seeking_method_group, tr("Seeking method"),
     563                tr("Sets the method to be used when seeking with the slider. "
     564           "Absolute seeking may be a little bit more accurate, while "
     565           "relative seeking may work better with files with a wrong length.") );
     566
    551567        addSectionTitle(tr("Instances"));
    552568
Note: See TracChangeset for help on using the changeset viewer.