Changeset 181 for smplayer/trunk/src/prefperformance.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/prefperformance.cpp
r176 r181 45 45 #endif 46 46 47 // Priority is only for windows, so we disable for other systems48 47 #ifndef Q_OS_WIN 49 48 priority_group->hide(); … … 59 58 #endif 60 59 60 #ifndef TV_SUPPORT 61 cachetv_label->hide(); 62 cache_tv_spin->hide(); 63 cachetv_label2->hide(); 64 #endif 65 61 66 retranslateStrings(); 62 67 } … … 71 76 72 77 QPixmap PrefPerformance::sectionIcon() { 73 return Images::icon("pref_performance", 22);78 return Images::icon("pref_performance"); 74 79 } 75 80 … … 93 98 94 99 void PrefPerformance::setData(Preferences * pref) { 100 cache_auto_check->setChecked(pref->cache_auto); 95 101 setCacheForFiles( pref->cache_for_files ); 96 102 setCacheForStreams( pref->cache_for_streams ); … … 98 104 setCacheForAudioCDs( pref->cache_for_audiocds ); 99 105 setCacheForVCDs( pref->cache_for_vcds ); 106 #ifdef TV_SUPPORT 100 107 setCacheForTV( pref->cache_for_tv ); 101 108 #endif 109 110 #ifdef Q_OS_WIN 102 111 setPriority( pref->priority ); 112 #endif 103 113 setFrameDrop( pref->frame_drop ); 104 114 setHardFrameDrop( pref->hard_frame_drop ); … … 118 128 requires_restart = false; 119 129 130 TEST_AND_SET(pref->cache_auto, cache_auto_check->isChecked()); 120 131 TEST_AND_SET(pref->cache_for_files, cacheForFiles()); 121 132 TEST_AND_SET(pref->cache_for_streams, cacheForStreams()); … … 123 134 TEST_AND_SET(pref->cache_for_audiocds, cacheForAudioCDs()); 124 135 TEST_AND_SET(pref->cache_for_vcds, cacheForVCDs()); 136 #ifdef TV_SUPPORT 125 137 TEST_AND_SET(pref->cache_for_tv, cacheForTV()); 126 138 #endif 139 140 #ifdef Q_OS_WIN 127 141 TEST_AND_SET(pref->priority, priority()); 142 #endif 128 143 TEST_AND_SET(pref->frame_drop, frameDrop()); 129 144 TEST_AND_SET(pref->hard_frame_drop, hardFrameDrop()); … … 180 195 } 181 196 197 #ifdef TV_SUPPORT 182 198 void PrefPerformance::setCacheForTV(int n) { 183 199 cache_tv_spin->setValue(n); … … 187 203 return cache_tv_spin->value(); 188 204 } 189 205 #endif 206 207 #ifdef Q_OS_WIN 190 208 void PrefPerformance::setPriority(int n) { 191 209 priority_combo->setCurrentIndex(n); … … 195 213 return priority_combo->currentIndex(); 196 214 } 215 #endif 197 216 198 217 void PrefPerformance::setFrameDrop(bool b) { … … 352 371 addSectionTitle(tr("Cache")); 353 372 354 setWhatsThis(cache_files_spin, tr("Cache for files"), 373 setWhatsThis(cache_auto_check, tr("Auto"), 374 tr("Usually this option will enable the cache when it's necessary.")); 375 376 setWhatsThis(cache_files_spin, tr("Cache for files"), 355 377 tr("This option specifies how much memory (in kBytes) to use when " 356 378 "precaching a file.") );
Note:
See TracChangeset
for help on using the changeset viewer.