Ignore:
Timestamp:
Aug 31, 2016, 5:31:04 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update trunk to version 16.8.0

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/prefinput.cpp

    r176 r181  
    2828        setupUi(this);
    2929
     30#ifndef GLOBALSHORTCUTS
     31        globalshortcuts_check->hide();
     32#endif
     33
    3034        retranslateStrings();
    3135}
     
    4044
    4145QPixmap PrefInput::sectionIcon() {
    42     return Images::icon("input_devices", 22);
     46        return Images::icon("input_devices");
    4347}
    4448
     
    187191
    188192        setDragFunction(pref->drag_function);
     193
     194#ifdef GLOBALSHORTCUTS
     195        setUseGlobalShortcuts(pref->use_global_shortcuts);
     196#endif
    189197}
    190198
     
    204212
    205213        pref->drag_function = dragFunction();
     214
     215#ifdef GLOBALSHORTCUTS
     216        pref->use_global_shortcuts = useGlobalShortcuts();
     217#endif
    206218}
    207219
     
    329341}
    330342
     343#ifdef GLOBALSHORTCUTS
     344void PrefInput::setUseGlobalShortcuts(bool b) {
     345        globalshortcuts_check->setChecked(b);
     346}
     347
     348bool PrefInput::useGlobalShortcuts() {
     349        return globalshortcuts_check->isChecked();
     350}
     351#endif
     352
    331353void PrefInput::createHelp() {
    332354        clearHelp();
     
    345367           "then you could enter the full name of the key.") );
    346368
     369#ifdef GLOBALSHORTCUTS
     370        setWhatsThis(globalshortcuts_check, tr("Use the multimedia keys as global shortcuts"),
     371                tr("When this option is enabled the multimedia keys (Play, Stop, Volume+/-, Mute, etc.) "
     372           "will work even when SMPlayer is running in the background."));
     373#endif
     374
    347375        addSectionTitle(tr("Mouse"));
    348376
Note: See TracChangeset for help on using the changeset viewer.