Changeset 23389 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 28, 2009 3:24:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r23368 r23389 761 761 if (aForce) 762 762 return true; 763 return !VBoxGlobal::brandingGetKey("VerSuffix").isEmpty(); 764 } 765 766 /** 767 * Gets a value from the global (platform-specific) application settings 768 * (e.g. on Windows using the registry) for branding stuff 763 764 if (mBrandingConfig.isEmpty()) 765 { 766 mBrandingConfig = QDir(QApplication::applicationDirPath()).absolutePath(); 767 mBrandingConfig += "/custom/custom.ini"; 768 } 769 return QFile::exists (mBrandingConfig); 770 } 771 772 /** 773 * Gets a value from the custom .ini file 769 774 */ 770 775 QString VBoxGlobal::brandingGetKey (QString aKey) 771 776 { 772 QSettings settings( "Sun", "VirtualBox");773 return settings.value(QString(" Branding/%1").arg(aKey)).toString();777 QSettings settings(mBrandingConfig, QSettings::IniFormat); 778 return settings.value(QString("%1").arg(aKey)).toString(); 774 779 } 775 780
Note:
See TracChangeset
for help on using the changeset viewer.