VirtualBox

Ignore:
Timestamp:
Apr 11, 2008 3:55:14 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29555
Message:

FE/Qt4: Use QDialogButtonBox. Replaced the last Qt3Support functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMInformationDlg.ui

    r7663 r7926  
    9696    </item>
    9797    <item>
    98      <layout class="QHBoxLayout" >
    99       <item>
    100        <spacer>
    101         <property name="orientation" >
    102          <enum>Qt::Horizontal</enum>
    103         </property>
    104         <property name="sizeHint" >
    105          <size>
    106           <width>40</width>
    107           <height>20</height>
    108          </size>
    109         </property>
    110        </spacer>
    111       </item>
    112       <item>
    113        <widget class="QPushButton" name="mBtnClose" >
    114         <property name="text" >
    115          <string>&amp;Close</string>
    116         </property>
    117         <property name="default" >
    118          <bool>true</bool>
    119         </property>
    120        </widget>
    121       </item>
    122      </layout>
     98     <widget class="QDialogButtonBox" name="mButtonBox" >
     99      <property name="standardButtons" >
     100       <set>QDialogButtonBox::Close</set>
     101      </property>
     102     </widget>
    123103    </item>
    124104   </layout>
     
    129109  <include location="../VirtualBox.qrc" />
    130110 </resources>
    131  <connections/>
     111 <connections>
     112  <connection>
     113   <sender>mButtonBox</sender>
     114   <signal>rejected()</signal>
     115   <receiver>VBoxVMInformationDlg</receiver>
     116   <slot>close()</slot>
     117   <hints>
     118    <hint type="sourcelabel" >
     119     <x>246</x>
     120     <y>348</y>
     121    </hint>
     122    <hint type="destinationlabel" >
     123     <x>246</x>
     124     <y>195</y>
     125    </hint>
     126   </hints>
     127  </connection>
     128 </connections>
    132129</ui>
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