Changeset 103793 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 11, 2024 7:17:31 PM (9 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp
r101560 r103793 36 36 /* GUI includes: */ 37 37 #include "QIDialogButtonBox.h" 38 #include "UICommon.h"39 38 #include "UIIconPool.h" 39 #include "UIVersion.h" 40 40 #include "VBoxAboutDlg.h" 41 41 #ifdef VBOX_WS_MAC … … 138 138 139 139 /* Branding: Use a custom about splash picture if set: */ 140 const QString strSplash = uiCommon().brandingGetKey("UI/AboutSplash");141 if ( uiCommon().brandingIsActive() && !strSplash.isEmpty())140 const QString strSplash = UIVersionInfo::brandingGetKey("UI/AboutSplash"); 141 if (UIVersionInfo::brandingIsActive() && !strSplash.isEmpty()) 142 142 { 143 143 char szExecPath[1024]; … … 184 184 /* Branding: Set a different text color (because splash also could be white), 185 185 * otherwise use white as default color: */ 186 const QString strColor = uiCommon().brandingGetKey("UI/AboutTextColor");186 const QString strColor = UIVersionInfo::brandingGetKey("UI/AboutTextColor"); 187 187 if (!strColor.isEmpty()) 188 188 palette.setColor(QPalette::WindowText, QColor(strColor).name()); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r103781 r103793 37 37 #include <QProcess> 38 38 #include <QProgressDialog> 39 #include <QRegularExpression>40 39 #include <QSessionManager> 41 40 #include <QSettings> … … 80 79 #include "UIThreadPool.h" 81 80 #include "UITranslator.h" 81 #include "UIVersion.h" 82 82 #include "UIVirtualBoxClientEventHandler.h" 83 83 #include "UIVirtualBoxEventHandler.h" … … 662 662 NULL /*pErrInfo*/); 663 663 664 LogRel(("Qt version: %s\n", qtRTVersionString().toUtf8().constData()));664 LogRel(("Qt version: %s\n", UIVersionInfo::qtRTVersionString().toUtf8().constData())); 665 665 } 666 666 … … 842 842 843 843 LogRel(("GUI: UICommon: aboutToQuit request handled!\n")); 844 }845 846 /* static */847 QString UICommon::qtRTVersionString()848 {849 return QString::fromLatin1(qVersion());850 }851 852 /* static */853 uint UICommon::qtRTVersion()854 {855 const QString strVersionRT = UICommon::qtRTVersionString();856 return (strVersionRT.section('.', 0, 0).toInt() << 16) +857 (strVersionRT.section('.', 1, 1).toInt() << 8) +858 strVersionRT.section('.', 2, 2).toInt();859 }860 861 /* static */862 uint UICommon::qtRTMajorVersion()863 {864 return UICommon::qtRTVersionString().section('.', 0, 0).toInt();865 }866 867 /* static */868 uint UICommon::qtRTMinorVersion()869 {870 return UICommon::qtRTVersionString().section('.', 1, 1).toInt();871 }872 873 /* static */874 uint UICommon::qtRTRevisionNumber()875 {876 return UICommon::qtRTVersionString().section('.', 2, 2).toInt();877 }878 879 /* static */880 QString UICommon::qtCTVersionString()881 {882 return QString::fromLatin1(QT_VERSION_STR);883 }884 885 /* static */886 uint UICommon::qtCTVersion()887 {888 const QString strVersionCompiled = UICommon::qtCTVersionString();889 return (strVersionCompiled.section('.', 0, 0).toInt() << 16) +890 (strVersionCompiled.section('.', 1, 1).toInt() << 8) +891 strVersionCompiled.section('.', 2, 2).toInt();892 }893 894 QString UICommon::vboxVersionString() const895 {896 const CVirtualBox comVBox = gpGlobalSession->virtualBox();897 return comVBox.GetVersion();898 }899 900 QString UICommon::vboxVersionStringNormalized() const901 {902 const CVirtualBox comVBox = gpGlobalSession->virtualBox();903 return comVBox.GetVersionNormalized();904 }905 906 bool UICommon::isBeta() const907 {908 return vboxVersionString().contains(QRegularExpression("BETA|ALPHA", QRegularExpression::CaseInsensitiveOption));909 }910 911 bool UICommon::showBetaLabel() const912 {913 return isBeta()914 && !gEDataManager->preventBetaBuildLavel();915 }916 917 bool UICommon::brandingIsActive(bool fForce /* = false */)918 {919 if (fForce)920 return true;921 922 if (m_strBrandingConfigFilePath.isEmpty())923 {924 m_strBrandingConfigFilePath = QDir(QApplication::applicationDirPath()).absolutePath();925 m_strBrandingConfigFilePath += "/custom/custom.ini";926 }927 928 return QFile::exists(m_strBrandingConfigFilePath);929 }930 931 QString UICommon::brandingGetKey(QString strKey) const932 {933 QSettings settings(m_strBrandingConfigFilePath, QSettings::IniFormat);934 return settings.value(QString("%1").arg(strKey)).toString();935 844 } 936 845 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h
r103781 r103793 150 150 /** @} */ 151 151 152 /** @name Versioning stuff.153 * @{ */154 /** Returns Qt runtime version string. */155 static QString qtRTVersionString();156 /** Returns Qt runtime version. */157 static uint qtRTVersion();158 /** Returns Qt runtime major version. */159 static uint qtRTMajorVersion();160 /** Returns Qt runtime minor version. */161 static uint qtRTMinorVersion();162 /** Returns Qt runtime revision number. */163 static uint qtRTRevisionNumber();164 165 /** Returns Qt compiled version string. */166 static QString qtCTVersionString();167 /** Returns Qt compiled version. */168 static uint qtCTVersion();169 170 /** Returns VBox version string. */171 QString vboxVersionString() const;172 /** Returns normalized VBox version string. */173 QString vboxVersionStringNormalized() const;174 /** Returns whether VBox version string contains BETA word. */175 bool isBeta() const;176 /** Returns whether BETA label should be shown. */177 bool showBetaLabel() const;178 179 /** Returns whether branding is active. */180 bool brandingIsActive(bool fForce = false);181 /** Returns value for certain branding @a strKey from custom.ini file. */182 QString brandingGetKey(QString strKey) const;183 /** @} */184 185 152 /** @name Host OS stuff. 186 153 * @{ */ … … 601 568 /** @} */ 602 569 603 /** @name Versioning stuff.604 * @{ */605 /** Holds the VBox branding config file path. */606 QString m_strBrandingConfigFilePath;607 /** @} */608 609 570 /** @name Host OS stuff. 610 571 * @{ */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICursor.cpp
r103710 r103793 33 33 #include "UICursor.h" 34 34 #ifdef VBOX_WS_NIX 35 # include "UI Common.h"35 # include "UIVersion.h" 36 36 #endif 37 37 … … 48 48 * extension. Qt (before 5.11) fails to handle the case where the mentioned extension 49 49 * is missing. Please see https://codereview.qt-project.org/#/c/225665/ for Qt patch: */ 50 if ((UI Common::qtRTMajorVersion() < 5) ||51 (UI Common::qtRTMajorVersion() == 5 && UICommon::qtRTMinorVersion() < 11))50 if ((UIVersionInfo::qtRTMajorVersion() < 5) || 51 (UIVersionInfo::qtRTMajorVersion() == 5 && UIVersionInfo::qtRTMinorVersion() < 11)) 52 52 { 53 53 if (NativeWindowSubsystem::checkExtension(uiCommon().X11ServerAvailable(), "RENDER")) … … 74 74 * extension. Qt (before 5.11) fails to handle the case where the mentioned extension 75 75 * is missing. Please see https://codereview.qt-project.org/#/c/225665/ for Qt patch: */ 76 if ((UI Common::qtRTMajorVersion() < 5) ||77 (UI Common::qtRTMajorVersion() == 5 && UICommon::qtRTMinorVersion() < 11))76 if ((UIVersionInfo::qtRTMajorVersion() < 5) || 77 (UIVersionInfo::qtRTMajorVersion() == 5 && UIVersionInfo::qtRTMinorVersion() < 11)) 78 78 { 79 79 if (NativeWindowSubsystem::checkExtension(uiCommon().X11ServerAvailable(), "RENDER")) … … 100 100 * extension. Qt (before 5.11) fails to handle the case where the mentioned extension 101 101 * is missing. Please see https://codereview.qt-project.org/#/c/225665/ for Qt patch: */ 102 if ((UI Common::qtRTMajorVersion() < 5) ||103 (UI Common::qtRTMajorVersion() == 5 && UICommon::qtRTMinorVersion() < 11))102 if ((UIVersionInfo::qtRTMajorVersion() < 5) || 103 (UIVersionInfo::qtRTMajorVersion() == 5 && UIVersionInfo::qtRTMinorVersion() < 11)) 104 104 { 105 105 if (NativeWindowSubsystem::checkExtension(uiCommon().X11ServerAvailable(), "RENDER")) … … 126 126 * extension. Qt (before 5.11) fails to handle the case where the mentioned extension 127 127 * is missing. Please see https://codereview.qt-project.org/#/c/225665/ for Qt patch: */ 128 if ((UI Common::qtRTMajorVersion() < 5) ||129 (UI Common::qtRTMajorVersion() == 5 && UICommon::qtRTMinorVersion() < 11))128 if ((UIVersionInfo::qtRTMajorVersion() < 5) || 129 (UIVersionInfo::qtRTMajorVersion() == 5 && UIVersionInfo::qtRTMinorVersion() < 11)) 130 130 { 131 131 if (NativeWindowSubsystem::checkExtension(uiCommon().X11ServerAvailable(), "RENDER")) -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r103771 r103793 54 54 #include "UIProgressDialog.h" 55 55 #include "UITranslator.h" 56 #include "UIVersion.h" 56 57 #include "VBoxAboutDlg.h" 57 58 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER … … 2094 2095 { 2095 2096 CVirtualBox vbox = gpGlobalSession->virtualBox(); 2096 const QString strFullVersion = uiCommon().brandingIsActive()2097 const QString strFullVersion = UIVersionInfo::brandingIsActive() 2097 2098 ? QString("%1 r%2 - %3").arg(vbox.GetVersion()) 2098 2099 .arg(vbox.GetRevision()) 2099 .arg( uiCommon().brandingGetKey("Name"))2100 .arg(UIVersionInfo::brandingGetKey("Name")) 2100 2101 : QString("%1 r%2").arg(vbox.GetVersion()) 2101 2102 .arg(vbox.GetRevision()); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVersion.cpp
r98103 r103793 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 30 #include <QDir> 31 #include <QFile> 32 #include <QRegularExpression> 33 #include <QSettings> 29 34 #include <QStringList> 30 35 31 36 /* GUI includes: */ 37 #include "UIExtraDataManager.h" 38 #include "UIGlobalSession.h" 32 39 #include "UIVersion.h" 40 41 /* COM includes: */ 42 #include "CVirtualBox.h" 33 43 34 44 /* Other VBox includes: */ 35 45 #include <iprt/string.h> 36 46 47 48 /********************************************************************************************************************************* 49 * Class UIVersion implementation. * 50 *********************************************************************************************************************************/ 37 51 38 52 UIVersion::UIVersion() … … 123 137 return version; 124 138 } 139 140 141 /********************************************************************************************************************************* 142 * Class UIVersionInfo implementation. * 143 *********************************************************************************************************************************/ 144 145 /* static */ 146 QString UIVersionInfo::s_strBrandingConfigFilePath = QString(); 147 148 /* static */ 149 QString UIVersionInfo::qtRTVersionString() 150 { 151 return QString::fromLatin1(qVersion()); 152 } 153 154 /* static */ 155 uint UIVersionInfo::qtRTVersion() 156 { 157 const QString strVersionRT = qtRTVersionString(); 158 return (strVersionRT.section('.', 0, 0).toInt() << 16) + 159 (strVersionRT.section('.', 1, 1).toInt() << 8) + 160 strVersionRT.section('.', 2, 2).toInt(); 161 } 162 163 /* static */ 164 uint UIVersionInfo::qtRTMajorVersion() 165 { 166 return qtRTVersionString().section('.', 0, 0).toInt(); 167 } 168 169 /* static */ 170 uint UIVersionInfo::qtRTMinorVersion() 171 { 172 return qtRTVersionString().section('.', 1, 1).toInt(); 173 } 174 175 /* static */ 176 uint UIVersionInfo::qtRTRevisionNumber() 177 { 178 return qtRTVersionString().section('.', 2, 2).toInt(); 179 } 180 181 /* static */ 182 QString UIVersionInfo::qtCTVersionString() 183 { 184 return QString::fromLatin1(QT_VERSION_STR); 185 } 186 187 /* static */ 188 uint UIVersionInfo::qtCTVersion() 189 { 190 const QString strVersionCompiled = qtCTVersionString(); 191 return (strVersionCompiled.section('.', 0, 0).toInt() << 16) 192 + (strVersionCompiled.section('.', 1, 1).toInt() << 8) 193 + strVersionCompiled.section('.', 2, 2).toInt(); 194 } 195 196 /* static */ 197 QString UIVersionInfo::vboxVersionString() 198 { 199 const CVirtualBox comVBox = gpGlobalSession->virtualBox(); 200 return comVBox.GetVersion(); 201 } 202 203 /* static */ 204 QString UIVersionInfo::vboxVersionStringNormalized() 205 { 206 const CVirtualBox comVBox = gpGlobalSession->virtualBox(); 207 return comVBox.GetVersionNormalized(); 208 } 209 210 /* static */ 211 bool UIVersionInfo::isBeta() 212 { 213 return vboxVersionString().contains(QRegularExpression("BETA|ALPHA", QRegularExpression::CaseInsensitiveOption)); 214 } 215 216 /* static */ 217 bool UIVersionInfo::showBetaLabel() 218 { 219 return isBeta() 220 && !gEDataManager->preventBetaBuildLavel(); 221 } 222 223 /* static */ 224 bool UIVersionInfo::brandingIsActive(bool fForce /* = false */) 225 { 226 if (fForce) 227 return true; 228 229 if (s_strBrandingConfigFilePath.isEmpty()) 230 { 231 s_strBrandingConfigFilePath = QDir(QApplication::applicationDirPath()).absolutePath(); 232 s_strBrandingConfigFilePath += "/custom/custom.ini"; 233 } 234 235 return QFile::exists(s_strBrandingConfigFilePath); 236 } 237 238 /* static */ 239 QString UIVersionInfo::brandingGetKey(QString strKey) 240 { 241 QSettings settings(s_strBrandingConfigFilePath, QSettings::IniFormat); 242 return settings.value(QString("%1").arg(strKey)).toString(); 243 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVersion.h
r98103 r103793 34 34 /* Qt includes: */ 35 35 #include <QString> 36 37 /* GUI includes: */ 38 #include "UILibraryDefs.h" 36 39 37 40 /** Represents VirtualBox version wrapper. */ … … 102 105 }; 103 106 107 /** Represents VirtualBox version info interface. */ 108 class SHARED_LIBRARY_STUFF UIVersionInfo 109 { 110 public: 111 112 /** Returns Qt runtime version string. */ 113 static QString qtRTVersionString(); 114 /** Returns Qt runtime version. */ 115 static uint qtRTVersion(); 116 /** Returns Qt runtime major version. */ 117 static uint qtRTMajorVersion(); 118 /** Returns Qt runtime minor version. */ 119 static uint qtRTMinorVersion(); 120 /** Returns Qt runtime revision number. */ 121 static uint qtRTRevisionNumber(); 122 123 /** Returns Qt compiled version string. */ 124 static QString qtCTVersionString(); 125 /** Returns Qt compiled version. */ 126 static uint qtCTVersion(); 127 128 /** Returns VBox version string. */ 129 static QString vboxVersionString(); 130 /** Returns normalized VBox version string. */ 131 static QString vboxVersionStringNormalized(); 132 /** Returns whether VBox version string contains BETA word. */ 133 static bool isBeta(); 134 /** Returns whether BETA label should be shown. */ 135 static bool showBetaLabel(); 136 137 /** Returns whether branding is active. */ 138 static bool brandingIsActive(bool fForce = false); 139 /** Returns value for certain branding @a strKey from custom.ini file. */ 140 static QString brandingGetKey(QString strKey); 141 142 private: 143 144 /** Constructs version info: */ 145 UIVersionInfo(); 146 147 /** Holds the VBox branding config file path. */ 148 static QString s_strBrandingConfigFilePath; 149 }; 150 104 151 #endif /* !FEQT_INCLUDED_SRC_globals_UIVersion_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r103551 r103793 38 38 #include "UICommon.h" 39 39 #include "UILoggingDefs.h" 40 #include "UIModalWindowManager.h" 40 41 #include "UIStarter.h" 41 #include "UIModalWindowManager.h"42 42 #ifdef VBOX_WS_MAC 43 43 # include "VBoxUtils.h" 44 44 # include "UICocoaApplication.h" 45 45 #endif /* VBOX_WS_MAC */ 46 #ifdef VBOX_WS_NIX 47 # include "UIVersion.h" 48 #endif 46 49 47 50 /* Other VBox includes: */ … … 524 527 525 528 /* Qt version check (major.minor are sensitive, fix number is ignored): */ 526 if (UI Common::qtRTVersion() < (UICommon::qtCTVersion() & 0xFFFF00))529 if (UIVersionInfo::qtRTVersion() < (UIVersionInfo::qtCTVersion() & 0xFFFF00)) 527 530 { 528 531 QString strMsg = QApplication::tr("Executable <b>%1</b> requires Qt %2.x, found Qt %3.") 529 532 .arg(qAppName()) 530 .arg(UI Common::qtCTVersionString().section('.', 0, 1))531 .arg(UI Common::qtRTVersionString());533 .arg(UIVersionInfo::qtCTVersionString().section('.', 0, 1)) 534 .arg(UIVersionInfo::qtRTVersionString()); 532 535 QMessageBox::critical(0, QApplication::tr("Incompatible Qt Library Error"), 533 536 strMsg, QMessageBox::Abort, QMessageBox::NoButton); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r103781 r103793 77 77 #include "UIVirtualMachineItemCloud.h" 78 78 #include "UIVirtualMachineItemLocal.h" 79 #include "UIVirtualBoxEventHandler.h" 79 80 #include "UIVMLogViewerDialog.h" 80 #include "UIVirtualBoxEventHandler.h"81 81 #include "UIWizardAddCloudVM.h" 82 82 #include "UIWizardCloneVD.h" … … 93 93 # include "UIImageTools.h" 94 94 # include "UIWindowMenuManager.h" 95 # include "UIVersion.h" 95 96 # include "VBoxUtils.h" 96 97 #else … … 2399 2400 #ifdef VBOX_WS_MAC 2400 2401 /* Beta label? */ 2401 if ( uiCommon().showBetaLabel())2402 if (UIVersionInfo::showBetaLabel()) 2402 2403 { 2403 2404 QPixmap betaLabel = ::betaLabel(QSize(74, darwinWindowTitleHeight(this) - 1)); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r103771 r103793 55 55 #ifdef VBOX_WS_MAC 56 56 # include "UIIconPool.h" 57 # include "UIVersion.h" 57 58 #endif 58 59 #ifndef VBOX_WS_MAC … … 679 680 m_pToolBar->emulateMacToolbar(); 680 681 /* Branding stuff for Qt6 beta: */ 681 if ( uiCommon().showBetaLabel())682 if (UIVersionInfo::showBetaLabel()) 682 683 m_pToolBar->enableBranding(UIIconPool::iconSet(":/explosion_hazard_32px.png"), 683 684 "Dev Preview", // do we need to make it NLS? -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UIDownloaderExtensionPack.cpp
r103771 r103793 34 34 /* GUI includes: */ 35 35 #include "QIFileDialog.h" 36 #include "UICommon.h"37 36 #include "UIDownloaderExtensionPack.h" 38 37 #include "UIGlobalSession.h" … … 50 49 { 51 50 /* Get version number and adjust it for test and trunk builds. The server only has official releases. */ 52 const QString strVersion = UIVersion( uiCommon().vboxVersionStringNormalized()).effectiveReleasedVersion().toString();51 const QString strVersion = UIVersion(UIVersionInfo::vboxVersionStringNormalized()).effectiveReleasedVersion().toString(); 53 52 54 53 /* Prepare source/target: */ -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UIDownloaderGuestAdditions.cpp
r103771 r103793 34 34 /* GUI includes: */ 35 35 #include "QIFileDialog.h" 36 #include "UICommon.h"37 36 #include "UIDownloaderGuestAdditions.h" 38 37 #include "UIGlobalSession.h" … … 50 49 { 51 50 /* Get version number and adjust it for test and trunk builds. The server only has official releases. */ 52 const QString strVersion = UIVersion( uiCommon().vboxVersionStringNormalized()).effectiveReleasedVersion().toString();51 const QString strVersion = UIVersion(UIVersionInfo::vboxVersionStringNormalized()).effectiveReleasedVersion().toString(); 53 52 54 53 /* Prepare source/target: */ -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UIDownloaderUserManual.cpp
r103771 r103793 46 46 { 47 47 /* Get version number and adjust it for test and trunk builds. The server only has official releases. */ 48 const QString strVersion = UIVersion( uiCommon().vboxVersionStringNormalized()).effectiveReleasedVersion().toString();48 const QString strVersion = UIVersion(UIVersionInfo::vboxVersionStringNormalized()).effectiveReleasedVersion().toString(); 49 49 50 50 /* Compose User Manual filename: */ -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UINewVersionChecker.cpp
r103771 r103793 31 31 32 32 /* GUI includes: */ 33 #include "UICommon.h"34 33 #include "UIExtraDataManager.h" 35 34 #include "UIGlobalSession.h" … … 38 37 #include "UINotificationCenter.h" 39 38 #include "UIUpdateDefs.h" 39 #include "UIVersion.h" 40 40 #ifdef Q_OS_LINUX 41 41 # include "QIProcess.h" … … 61 61 url.addQueryItem("platform", gpGlobalSession->virtualBox().GetPackageType()); 62 62 /* Check if branding is active: */ 63 if ( uiCommon().brandingIsActive())63 if (UIVersionInfo::brandingIsActive()) 64 64 { 65 65 /* Branding: Check whether we have a local branding file which tells us our version suffix "FOO" … … 67 67 url.addQueryItem("version", QString("%1_%2_%3").arg(gpGlobalSession->virtualBox().GetVersion()) 68 68 .arg(gpGlobalSession->virtualBox().GetRevision()) 69 .arg( uiCommon().brandingGetKey("VerSuffix")));69 .arg(UIVersionInfo::brandingGetKey("VerSuffix"))); 70 70 } 71 71 else -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UIUpdateDefs.cpp
r101452 r103793 32 32 33 33 /* GUI includes: */ 34 #include "UICommon.h"35 34 #include "UINotificationCenter.h" 36 35 #include "UIUpdateDefs.h" 36 #include "UIVersion.h" 37 37 38 38 /* COM includes: */ … … 131 131 m_fCheckRequired = (QDate::currentDate() >= date()) 132 132 && ( !version().isValid() 133 || version() != UIVersion( uiCommon().vboxVersionStringNormalized()));133 || version() != UIVersion(UIVersionInfo::vboxVersionStringNormalized())); 134 134 } 135 135 … … 165 165 166 166 /* Encode 'version' value: */ 167 m_version = UIVersion( uiCommon().vboxVersionStringNormalized());167 m_version = UIVersion(UIVersionInfo::vboxVersionStringNormalized()); 168 168 const QString strVersionValue = m_version.toString(); 169 169 … … 174 174 m_fCheckRequired = (QDate::currentDate() >= date()) 175 175 && ( !version().isValid() 176 || version() != UIVersion( uiCommon().vboxVersionStringNormalized()));176 || version() != UIVersion(UIVersionInfo::vboxVersionStringNormalized())); 177 177 } 178 178 -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UIUpdateManager.cpp
r103771 r103793 31 31 32 32 /* GUI includes: */ 33 #include "UICommon.h"34 33 #include "UIExecutionQueue.h" 35 34 #include "UIExtension.h" … … 41 40 #include "UIUpdateDefs.h" 42 41 #include "UIUpdateManager.h" 42 #include "UIVersion.h" 43 #ifdef VBOX_WITH_UPDATE_REQUEST 44 # include "UICommon.h" 45 #endif 43 46 44 47 /* COM includes: */ … … 159 162 160 163 /* Get VirtualBox version: */ 161 UIVersion vboxVersion( uiCommon().vboxVersionStringNormalized());164 UIVersion vboxVersion(UIVersionInfo::vboxVersionStringNormalized()); 162 165 /* Get extension pack version: */ 163 166 QString strExtPackVersion(extPack.GetVersion()); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r103771 r103793 73 73 #include "UISoftKeyboard.h" 74 74 #include "UITakeSnapshotDialog.h" 75 #include "UIVersion.h" 75 76 #include "UIVirtualBoxEventHandler.h" 76 77 #include "UIVMLogViewerDialog.h" … … 2308 2309 else 2309 2310 { 2310 const QString strName = QString("%1_%2.iso").arg(GUI_GuestAdditionsName, uiCommon().vboxVersionStringNormalized());2311 const QString strName = QString("%1_%2.iso").arg(GUI_GuestAdditionsName, UIVersionInfo::vboxVersionStringNormalized()); 2311 2312 foreach (const CMedium &comMedium, comMedia) 2312 2313 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r103771 r103793 54 54 #include "UISession.h" 55 55 #include "UITextTable.h" 56 #include "UIVersion.h" 56 57 #ifdef VBOX_GUI_WITH_KEYS_RESET_HANDLER 57 58 # include "UIKeyboardHandler.h" … … 224 225 225 226 /* Some logging right after we powered up: */ 226 LogRel(("GUI: Qt version: %s\n", UI Common::qtRTVersionString().toUtf8().constData()));227 LogRel(("GUI: Qt version: %s\n", UIVersionInfo::qtRTVersionString().toUtf8().constData())); 227 228 #ifdef VBOX_WS_NIX 228 229 LogRel(("GUI: X11 Window Manager code: %d\n", (int)uiCommon().typeOfWindowManager())); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r103538 r103793 59 59 # include "UIImageTools.h" 60 60 # include "UICocoaApplication.h" 61 # include "UIVersion.h" 61 62 #endif /* VBOX_WS_MAC */ 62 63 … … 267 268 #ifdef VBOX_WS_MAC 268 269 /* Beta label? */ 269 if ( uiCommon().showBetaLabel())270 if (UIVersionInfo::showBetaLabel()) 270 271 { 271 272 QPixmap betaLabel = ::betaLabel(QSize(74, darwinWindowTitleHeight(this) - 1)); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.cpp
r103538 r103793 49 49 # include "UIImageTools.h" 50 50 # include "UICocoaApplication.h" 51 # include "UIVersion.h" 51 52 #endif 52 53 … … 83 84 84 85 /* Beta label? */ 85 if ( uiCommon().showBetaLabel())86 if (UIVersionInfo::showBetaLabel()) 86 87 { 87 88 QPixmap betaLabel = ::betaLabel(QSize(74, darwinWindowTitleHeight(this) - 1)); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMenuBar.cpp
r98103 r103793 32 32 33 33 /* GUI includes: */ 34 #include "UICommon.h"35 34 #include "UIDesktopWidgetWatchdog.h" 36 35 #include "UIImageTools.h" 37 36 #include "UIMenuBar.h" 37 #include "UIVersion.h" 38 38 39 39 … … 43 43 { 44 44 /* Check for beta versions: */ 45 if ( uiCommon().showBetaLabel())45 if (UIVersionInfo::showBetaLabel()) 46 46 m_fShowBetaLabel = true; 47 47 }
Note:
See TracChangeset
for help on using the changeset viewer.