VirtualBox

Changeset 25679 in vbox


Ignore:
Timestamp:
Jan 7, 2010 10:52:28 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56396
Message:

FE/Qt4: GUI setting for setting the hardware clock to UTC

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/vm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsGeneral.cpp

    r25177 r25679  
    8686    mCbToolBarAlignment->setEnabled (mCbShowToolBar->isChecked());
    8787
     88    /* RTC use UTC */
     89    bool rtcUseUTC = mMachine.GetRTCUseUTC ();
     90    mCbTCUseUTC->setChecked (rtcUseUTC);
     91
    8892    /* Snapshot folder */
    8993    mPsSnapshot->setPath (aMachine.GetSnapshotFolder());
     
    120124    mMachine.SetExtraData (VBoxDefs::GUI_MiniToolBarAlignment,
    121125                           mCbToolBarAlignment->isChecked() ? "top" : "bottom");
     126
     127    /* RTC reports time in UTC */
     128    mMachine.SetRTCUseUTC (mCbTCUseUTC->isChecked());
    122129
    123130    /* Saved state folder */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsGeneral.ui

    r25196 r25679  
    241241           </widget>
    242242          </item>
     243          <item row="5" column="0" >
     244           <widget class="QLabel" name="mLbRTCUseUTC" >
     245            <property name="text" >
     246             <string>Hardware clock:</string>
     247            </property>
     248            <property name="alignment" >
     249             <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
     250            </property>
     251           </widget>
     252          </item>
     253          <item row="5" column="1" >
     254           <widget class="QCheckBox" name="mCbTCUseUTC" >
     255            <property name="sizePolicy" >
     256             <sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
     257              <horstretch>0</horstretch>
     258              <verstretch>0</verstretch>
     259             </sizepolicy>
     260            </property>
     261            <property name="whatsThis" >
     262             <string>If checked, the RTC device will report the time in UTC, otherwise in local (host) time. Unix usually expects the hardware clock to be set in UTC.</string>
     263            </property>
     264            <property name="text" >
     265             <string>Report &amp;UTC time</string>
     266            </property>
     267            <property name="checked" >
     268             <bool>false</bool>
     269            </property>
     270           </widget>
     271          </item>
    243272         </layout>
    244273        </widget>
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