VirtualBox

Ignore:
Timestamp:
Apr 6, 2013 10:49:35 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Removing some obsolete code which I forgot to remove in r84799.

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

Legend:

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

    r44561 r45388  
    6262    remapScancodes = QString::null;
    6363    proxySettings = QString::null;
    64     trayIconEnabled = false;
    6564    presentationModeEnabled = false;
    6665    hostScreenSaverDisabled = false;
     
    7675    remapScancodes = that.remapScancodes;
    7776    proxySettings = that.proxySettings;
    78     trayIconEnabled = that.trayIconEnabled;
    7977    presentationModeEnabled = that.presentationModeEnabled;
    8078    hostScreenSaverDisabled = that.hostScreenSaverDisabled;
     
    9593         remapScancodes == that.remapScancodes &&
    9694         proxySettings == that.proxySettings &&
    97          trayIconEnabled == that.trayIconEnabled &&
    9895         presentationModeEnabled == that.presentationModeEnabled &&
    9996         hostScreenSaverDisabled == that.hostScreenSaverDisabled
     
    126123    { "GUI/RemapScancodes",                        "remapScancodes",          "(\\d+=\\d+,)*\\d+=\\d+", true },
    127124    { "GUI/ProxySettings",                         "proxySettings",           "[\\s\\S]*", true },
    128     { "GUI/TrayIcon/Enabled",                      "trayIconEnabled",         "true|false", true },
    129125#ifdef Q_WS_MAC
    130126    { GUI_PresentationModeEnabled,                 "presentationModeEnabled", "true|false", true },
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobalSettings.h

    r37544 r45388  
    4545    QString remapScancodes;
    4646    QString proxySettings;
    47     bool trayIconEnabled;
    4847    bool presentationModeEnabled;
    4948    bool hostScreenSaverDisabled;
     
    6463    Q_PROPERTY (QString remapScancodes READ remapScancodes WRITE setRemapScancodes)
    6564    Q_PROPERTY (QString proxySettings READ proxySettings WRITE setProxySettings)
    66     Q_PROPERTY (bool trayIconEnabled READ trayIconEnabled WRITE setTrayIconEnabled)
    6765    Q_PROPERTY (bool presentationModeEnabled READ presentationModeEnabled WRITE setPresentationModeEnabled)
    6866    Q_PROPERTY (bool hostScreenSaverDisabled READ hostScreenSaverDisabled WRITE setHostScreenSaverDisabled)
     
    122120    }
    123121
    124     bool trayIconEnabled() const { return data()->trayIconEnabled; }
    125     void setTrayIconEnabled (bool enabled)
    126     {
    127         mData()->trayIconEnabled = enabled;
    128     }
    129 
    130122    bool presentationModeEnabled() const { return data()->presentationModeEnabled; }
    131123    void setPresentationModeEnabled (bool enabled)
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.cpp

    r45374 r45388  
    4141
    4242    /* If all checkboxes hidden, hide separator too: */
    43     if (m_pEnableTrayIconCheckbox->isHidden() &&
    44         m_pEnablePresentationModeCheckbox->isHidden() &&
     43    if (m_pEnablePresentationModeCheckbox->isHidden() &&
    4544        m_pDisableHostScreenSaverCheckbox->isHidden())
    4645        m_pLineSeparator2->hide();
     
    6564    m_cache.m_strDefaultMachineFolder = m_properties.GetDefaultMachineFolder();
    6665    m_cache.m_strVRDEAuthLibrary = m_properties.GetVRDEAuthLibrary();
    67     m_cache.m_fTrayIconEnabled = m_settings.trayIconEnabled();
    6866#ifdef Q_WS_MAC
    6967    m_cache.m_fPresentationModeEnabled = m_settings.presentationModeEnabled();
     
    8280    m_pMachineFolderSelector->setPath(m_cache.m_strDefaultMachineFolder);
    8381    m_pVRDPLibNameSelector->setPath(m_cache.m_strVRDEAuthLibrary);
    84     m_pEnableTrayIconCheckbox->setChecked(m_cache.m_fTrayIconEnabled);
    8582#ifdef Q_WS_MAC
    8683    m_pEnablePresentationModeCheckbox->setChecked(m_cache.m_fPresentationModeEnabled);
     
    9693    m_cache.m_strDefaultMachineFolder = m_pMachineFolderSelector->path();
    9794    m_cache.m_strVRDEAuthLibrary = m_pVRDPLibNameSelector->path();
    98     m_cache.m_fTrayIconEnabled = m_pEnableTrayIconCheckbox->isChecked();
    9995#ifdef Q_WS_MAC
    10096    m_cache.m_fPresentationModeEnabled = m_pEnablePresentationModeCheckbox->isChecked();
     
    115111    if (m_properties.isOk() && m_pVRDPLibNameSelector->isModified())
    116112        m_properties.SetVRDEAuthLibrary(m_cache.m_strVRDEAuthLibrary);
    117     m_settings.setTrayIconEnabled(m_cache.m_fTrayIconEnabled);
    118113#ifdef Q_WS_MAC
    119114    m_settings.setPresentationModeEnabled(m_cache.m_fPresentationModeEnabled);
     
    130125    setTabOrder(pWidget, m_pMachineFolderSelector);
    131126    setTabOrder(m_pMachineFolderSelector, m_pVRDPLibNameSelector);
    132     setTabOrder(m_pVRDPLibNameSelector, m_pEnableTrayIconCheckbox);
    133     setTabOrder(m_pEnableTrayIconCheckbox, m_pEnablePresentationModeCheckbox);
     127    setTabOrder(m_pVRDPLibNameSelector, m_pEnablePresentationModeCheckbox);
    134128    setTabOrder(m_pEnablePresentationModeCheckbox, m_pDisableHostScreenSaverCheckbox);
    135129}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.h

    r44528 r45388  
    2929    QString m_strDefaultMachineFolder;
    3030    QString m_strVRDEAuthLibrary;
    31     bool m_fTrayIconEnabled;
    3231#ifdef Q_WS_MAC
    3332    bool m_fPresentationModeEnabled;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.ui

    r43106 r45388  
    8888   </item>
    8989   <item row="4" column="0">
    90     <widget class="QWidget" name="m_pSpacerWidget1">
     90    <widget class="QWidget" name="m_pSpacerWidget2">
    9191     <property name="sizePolicy">
    9292      <sizepolicy hsizetype="Fixed" vsizetype="Minimum">
     
    101101   </item>
    102102   <item row="4" column="1" colspan="2">
    103     <widget class="QCheckBox" name="m_pEnableTrayIconCheckbox">
    104      <property name="whatsThis">
    105       <string>When checked, the application will provide an icon with the context menu in the system tray.</string>
    106      </property>
     103    <widget class="QCheckBox" name="m_pEnablePresentationModeCheckbox">
    107104     <property name="text">
    108       <string>&amp;Show System Tray Icon</string>
     105      <string>&amp;Auto show Dock and Menubar in fullscreen</string>
    109106     </property>
    110107    </widget>
    111108   </item>
    112109   <item row="5" column="0">
    113     <widget class="QWidget" name="m_pSpacerWidget2">
     110    <widget class="QWidget" name="m_pSpacerWidget3">
    114111     <property name="sizePolicy">
    115112      <sizepolicy hsizetype="Fixed" vsizetype="Minimum">
     
    124121   </item>
    125122   <item row="5" column="1" colspan="2">
    126     <widget class="QCheckBox" name="m_pEnablePresentationModeCheckbox">
    127      <property name="text">
    128       <string>&amp;Auto show Dock and Menubar in fullscreen</string>
    129      </property>
    130     </widget>
    131    </item>
    132    <item row="6" column="0">
    133     <widget class="QWidget" name="m_pSpacerWidget3">
    134      <property name="sizePolicy">
    135       <sizepolicy hsizetype="Fixed" vsizetype="Minimum">
    136        <horstretch>0</horstretch>
    137        <verstretch>0</verstretch>
    138       </sizepolicy>
    139      </property>
    140      <property name="minimumWidth">
    141       <number>34</number>
    142      </property>
    143     </widget>
    144    </item>
    145    <item row="6" column="1" colspan="2">
    146123    <widget class="QCheckBox" name="m_pDisableHostScreenSaverCheckbox">
    147124     <property name="whatsThis">
     
    153130    </widget>
    154131   </item>
    155    <item row="7" column="0" colspan="3">
     132   <item row="6" column="0" colspan="3">
    156133    <spacer>
    157134     <property name="orientation">
Note: See TracChangeset for help on using the changeset viewer.

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