VirtualBox

Changeset 66661 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 24, 2017 5:44:34 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115034
Message:

FE/Qt: bugref:6911: Enable old-style user machine icon configuration for macOS as well.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp

    r66593 r66661  
    9595const char* UIExtraDataDefs::GUI_PreventSnapshotOperations = "GUI/PreventSnapshotOperations";
    9696const char* UIExtraDataDefs::GUI_FirstRun = "GUI/FirstRun";
     97const char* UIExtraDataDefs::GUI_MachineWindowIcons = "GUI/MachineWindowIcons";
    9798#ifndef VBOX_WS_MAC
    98 const char* UIExtraDataDefs::GUI_MachineWindowIcons = "GUI/MachineWindowIcons";
    9999const char* UIExtraDataDefs::GUI_MachineWindowNamePostfix = "GUI/MachineWindowNamePostfix";
    100100#endif /* !VBOX_WS_MAC */
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h

    r66593 r66661  
    165165        /** Holds whether this machine is first time started. */
    166166        extern const char* GUI_FirstRun;
    167 #ifndef VBOX_WS_MAC
    168167        /** Except Mac OS X: Holds redefined machine-window icon names. */
    169168        extern const char* GUI_MachineWindowIcons;
     169#ifndef VBOX_WS_MAC
    170170        /** Except Mac OS X: Holds redefined machine-window name postfix. */
    171171        extern const char* GUI_MachineWindowNamePostfix;
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r66657 r66661  
    28272827}
    28282828
     2829QStringList UIExtraDataManager::machineWindowIconNames(const QString &strID)
     2830{
     2831    return extraDataStringList(GUI_MachineWindowIcons, strID);
     2832}
     2833
    28292834#ifndef VBOX_WS_MAC
    2830 QStringList UIExtraDataManager::machineWindowIconNames(const QString &strID)
    2831 {
    2832     return extraDataStringList(GUI_MachineWindowIcons, strID);
    2833 }
    2834 
    28352835QString UIExtraDataManager::machineWindowNamePostfix(const QString &strID)
    28362836{
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r66593 r66661  
    350350        void setMachineFirstTimeStarted(bool fFirstTimeStarted, const QString &strID);
    351351
    352 #ifndef VBOX_WS_MAC
    353352        /** Except Mac OS X: Returns redefined machine-window icon names. */
    354353        QStringList machineWindowIconNames(const QString &strID);
     354#ifndef VBOX_WS_MAC
    355355        /** Except Mac OS X: Returns redefined machine-window name postfix. */
    356356        QString machineWindowNamePostfix(const QString &strID);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r66660 r66661  
    12901290        {
    12911291            QIcon icon;
    1292 #ifndef VBOX_WS_MAC
    12931292            /* Load user machine-window icon: */
    12941293            foreach (const QString &strIconName, gEDataManager->machineWindowIconNames(strMachineID))
    12951294                if (!strIconName.isEmpty() && QFile::exists(strIconName))
    12961295                    icon.addFile(strIconName);
    1297 #endif
    12981296            /* Use the OS type icon if user one was not set: */
    12991297            if (icon.isNull())
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette