Changeset 181 for smplayer/trunk/src/prefinput.cpp
- Timestamp:
- Aug 31, 2016, 5:31:04 PM (9 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 179
- Property svn:mergeinfo changed
-
smplayer/trunk/src/prefinput.cpp
r176 r181 28 28 setupUi(this); 29 29 30 #ifndef GLOBALSHORTCUTS 31 globalshortcuts_check->hide(); 32 #endif 33 30 34 retranslateStrings(); 31 35 } … … 40 44 41 45 QPixmap PrefInput::sectionIcon() { 42 return Images::icon("input_devices", 22);46 return Images::icon("input_devices"); 43 47 } 44 48 … … 187 191 188 192 setDragFunction(pref->drag_function); 193 194 #ifdef GLOBALSHORTCUTS 195 setUseGlobalShortcuts(pref->use_global_shortcuts); 196 #endif 189 197 } 190 198 … … 204 212 205 213 pref->drag_function = dragFunction(); 214 215 #ifdef GLOBALSHORTCUTS 216 pref->use_global_shortcuts = useGlobalShortcuts(); 217 #endif 206 218 } 207 219 … … 329 341 } 330 342 343 #ifdef GLOBALSHORTCUTS 344 void PrefInput::setUseGlobalShortcuts(bool b) { 345 globalshortcuts_check->setChecked(b); 346 } 347 348 bool PrefInput::useGlobalShortcuts() { 349 return globalshortcuts_check->isChecked(); 350 } 351 #endif 352 331 353 void PrefInput::createHelp() { 332 354 clearHelp(); … … 345 367 "then you could enter the full name of the key.") ); 346 368 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 347 375 addSectionTitle(tr("Mouse")); 348 376
Note:
See TracChangeset
for help on using the changeset viewer.