Changeset 23431 in vbox for trunk/src/VBox
- Timestamp:
- Sep 30, 2009 10:31:04 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp
r23425 r23431 24 24 #include "VBoxGlobal.h" 25 25 26 #include <iprt/path.h> 27 26 28 /* Qt includes */ 27 29 #include <QDir> … … 36 38 retranslateUi(); 37 39 40 QString sPath (":/about.png"); 38 41 /* Branding: Use a custom about splash picture if set */ 39 QString sSplash = vboxGlobal().brandingGetKey("UI/AboutSplash"); 40 QDir pathImage(sSplash); 42 QString sSplash = vboxGlobal().brandingGetKey ("UI/AboutSplash"); 41 43 if (vboxGlobal().brandingIsActive() && !sSplash.isEmpty()) 42 mBgImage.load(pathImage.absolutePath()); 43 else /* ... or load the built-in picture */ 44 mBgImage.load(":/about.png"); 44 { 45 char szExecPath[PATH_MAX]; 46 RTPathExecDir (szExecPath, PATH_MAX); 47 QString tmpPath = QString ("%1/%2").arg (szExecPath).arg (sSplash); 48 if (QFile::exists (tmpPath)) 49 sPath = tmpPath; 50 } 51 52 mBgImage.load (sPath); 45 53 } 46 54 … … 76 84 painter.setFont (font()); 77 85 78 /* Branding: Set a different text color (because splash also could be white), 86 /* Branding: Set a different text color (because splash also could be white), 79 87 otherwise use white as default color */ 80 88 QString sColor = vboxGlobal().brandingGetKey("UI/AboutTextColor");
Note:
See TracChangeset
for help on using the changeset viewer.