Changeset 561 for trunk/src/3rdparty/phonon/phonon/globalconfig.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/3rdparty/phonon/phonon/globalconfig.cpp
r2 r561 7 7 version 2.1 of the License, or (at your option) version 3, or any 8 8 later version accepted by the membership of KDE e.V. (or its 9 successor approved by the membership of KDE e.V.), Trolltech ASA9 successor approved by the membership of KDE e.V.), Nokia Corporation 10 10 (or its successors, if any) and the KDE Free Qt Foundation, which shall 11 11 act as a proxy defined in Section 6 of version 3 of the license. … … 39 39 { 40 40 41 GlobalConfig::GlobalConfig() : m_config(QLatin1String("kde.org"), QLatin1String("libphonon")) 41 GlobalConfig::GlobalConfig() 42 #ifndef QT_NO_SETTINGS 43 : m_config(QLatin1String("kde.org"), QLatin1String("libphonon")) 44 #endif //QT_NO_SETTINGS 42 45 { 43 46 } … … 83 86 } 84 87 88 #ifndef QT_NO_PHONON_SETTINGSGROUP 85 89 static QList<int> listSortedByConfig(const QSettingsGroup &backendConfig, Phonon::Category category, QList<int> &defaultList) 86 90 { … … 127 131 return deviceList; 128 132 } 129 133 #endif //QT_NO_PHONON_SETTINGSGROUP 134 135 #ifndef QT_NO_PHONON_SETTINGSGROUP 130 136 QList<int> GlobalConfig::audioOutputDeviceListFor(Phonon::Category category, int override) const 131 137 { … … 173 179 return listSortedByConfig(backendConfig, category, defaultList); 174 180 } 175 181 #endif //QT_NO_PHONON_SETTINGSGROUP 176 182 int GlobalConfig::audioOutputDeviceFor(Phonon::Category category, int override) const 177 183 { 184 #ifndef QT_NO_PHONON_SETTINGSGROUP 178 185 QList<int> ret = audioOutputDeviceListFor(category, override); 179 if (ret.isEmpty()) 180 return -1; 181 return ret.first(); 186 if (!ret.isEmpty()) 187 return ret.first(); 188 #endif //QT_NO_PHONON_SETTINGSGROUP 189 return -1; 182 190 } 183 191 … … 185 193 QList<int> GlobalConfig::audioCaptureDeviceListFor(Phonon::Category category, int override) const 186 194 { 195 #ifndef QT_NO_PHONON_SETTINGSGROUP 187 196 //The devices need to be stored independently for every backend 188 197 const QSettingsGroup backendConfig(&m_config, QLatin1String("AudioCaptureDevice")); // + Factory::identifier()); … … 227 236 228 237 return listSortedByConfig(backendConfig, category, defaultList); 238 #else //QT_NO_SETTINGSGROUP 239 return QList<int>(); 240 #endif //QT_NO_SETTINGSGROUP 229 241 } 230 242
Note:
See TracChangeset
for help on using the changeset viewer.