VirtualBox

Changeset 45196 in vbox for trunk/src


Ignore:
Timestamp:
Mar 27, 2013 8:30:40 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Machine settings: USB page and Shared Folders page layout fixes.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp

    r44528 r45196  
    187187                                            ":/remove_shared_folder_disabled_16px.png"));
    188188
    189     /* Prepare toolbar */
    190     mTbFolders->setUsesTextLabel (false);
    191     mTbFolders->setIconSize (QSize (16, 16));
    192     mTbFolders->setOrientation (Qt::Vertical);
    193     mTbFolders->addAction (mNewAction);
    194     mTbFolders->addAction (mEdtAction);
    195     mTbFolders->addAction (mDelAction);
     189    /* Prepare tool-bar: */
     190    m_pFoldersToolBar->setUsesTextLabel(false);
     191    m_pFoldersToolBar->setIconSize(QSize(16, 16));
     192    m_pFoldersToolBar->setOrientation(Qt::Vertical);
     193    m_pFoldersToolBar->addAction(mNewAction);
     194    m_pFoldersToolBar->addAction(mEdtAction);
     195    m_pFoldersToolBar->addAction(mDelAction);
    196196
    197197    /* Setup connections */
     
    700700    /* Update widgets availability: */
    701701    mNameSeparator->setEnabled(isMachineInValidMode());
    702     mTwFolders->setEnabled(isMachineInValidMode());
    703     mTbFolders->setEnabled(isMachineInValidMode());
     702    m_pFoldersToolBar->setEnabled(isMachineInValidMode());
     703    m_pFoldersToolBar->setEnabled(isMachineInValidMode());
    704704
    705705    /* Update root items visibility: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.ui

    r43106 r45196  
    3838   </item>
    3939   <item>
    40     <layout class="QHBoxLayout" name="mLtFolders">
    41      <property name="margin">
    42       <number>0</number>
    43      </property>
    44      <property name="spacing">
    45       <number>3</number>
    46      </property>
    47      <item>
    48       <widget class="QTreeWidget" name="mTwFolders">
    49        <property name="minimumSize">
    50         <size>
    51          <width>0</width>
    52          <height>200</height>
    53         </size>
    54        </property>
    55        <property name="contextMenuPolicy">
    56         <enum>Qt::CustomContextMenu</enum>
    57        </property>
    58        <property name="whatsThis">
    59         <string>Lists all shared folders accessible to this machine. Use 'net use x: \\vboxsvr\share' to access a shared folder named &lt;i>share&lt;/i> from a DOS-like OS, or 'mount -t vboxsf share mount_point' to access it from a Linux OS. This feature requires Guest Additions.</string>
    60        </property>
    61        <property name="uniformRowHeights">
    62         <bool>true</bool>
    63        </property>
    64        <property name="allColumnsShowFocus">
    65         <bool>true</bool>
    66        </property>
    67        <column>
    68         <property name="text">
    69          <string>Name</string>
     40    <widget class="QWidget" native="1" name="mTwFoldersContainer">
     41     <layout class="QHBoxLayout" name="mLtFolders">
     42      <property name="leftMargin">
     43       <number>0</number>
     44      </property>
     45      <property name="topMargin">
     46       <number>0</number>
     47      </property>
     48      <property name="rightMargin">
     49       <number>0</number>
     50      </property>
     51      <property name="bottomMargin">
     52       <number>0</number>
     53      </property>
     54      <property name="spacing">
     55       <number>3</number>
     56      </property>
     57      <item>
     58       <widget class="QTreeWidget" name="mTwFolders">
     59        <property name="minimumSize">
     60         <size>
     61          <width>0</width>
     62          <height>200</height>
     63         </size>
    7064        </property>
    71        </column>
    72        <column>
    73         <property name="text">
    74          <string>Path</string>
     65        <property name="contextMenuPolicy">
     66         <enum>Qt::CustomContextMenu</enum>
    7567        </property>
    76        </column>
    77        <column>
    78         <property name="text">
    79          <string>Auto-Mount</string>
     68        <property name="whatsThis">
     69         <string>Lists all shared folders accessible to this machine. Use 'net use x: \\vboxsvr\share' to access a shared folder named &lt;i>share&lt;/i> from a DOS-like OS, or 'mount -t vboxsf share mount_point' to access it from a Linux OS. This feature requires Guest Additions.</string>
    8070        </property>
    81        </column>
    82        <column>
    83         <property name="text">
    84          <string>Access</string>
     71        <property name="uniformRowHeights">
     72         <bool>true</bool>
    8573        </property>
    86        </column>
    87       </widget>
    88      </item>
    89      <item>
    90       <widget class="UIToolBar" native="1" name="mTbFolders"/>
    91      </item>
    92     </layout>
     74        <property name="allColumnsShowFocus">
     75         <bool>true</bool>
     76        </property>
     77        <column>
     78         <property name="text">
     79          <string>Name</string>
     80         </property>
     81        </column>
     82        <column>
     83         <property name="text">
     84          <string>Path</string>
     85         </property>
     86        </column>
     87        <column>
     88         <property name="text">
     89          <string>Auto-Mount</string>
     90         </property>
     91        </column>
     92        <column>
     93         <property name="text">
     94          <string>Access</string>
     95         </property>
     96        </column>
     97       </widget>
     98      </item>
     99      <item>
     100       <widget class="UIToolBar" native="1" name="m_pFoldersToolBar"/>
     101      </item>
     102     </layout>
     103    </widget>
    93104   </item>
    94105  </layout>
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp

    r43459 r45196  
    176176                                            ":/usb_movedown_disabled_16px.png"));
    177177
    178     /* Prepare toolbar */
    179     m_pToolBar = new UIToolBar (mWtFilterHandler);
    180     m_pToolBar->setUsesTextLabel (false);
    181     m_pToolBar->setIconSize (QSize (16, 16));
    182     m_pToolBar->setOrientation (Qt::Vertical);
    183     m_pToolBar->addAction (mNewAction);
    184     m_pToolBar->addAction (mAddAction);
    185     m_pToolBar->addAction (mEdtAction);
    186     m_pToolBar->addAction (mDelAction);
    187     m_pToolBar->addAction (mMupAction);
    188     m_pToolBar->addAction (mMdnAction);
    189     m_pToolBar->setSizePolicy (QSizePolicy::Fixed, QSizePolicy::MinimumExpanding);
    190     m_pToolBar->updateGeometry();
    191 #ifdef Q_WS_MAC
    192     /* On the Mac this has to be slightly higher, than what sizeHint returned.
    193      * No idea why. */
    194     m_pToolBar->setMinimumHeight(m_pToolBar->sizeHint().height() + 4);
    195 #else
    196     m_pToolBar->setMinimumHeight(m_pToolBar->sizeHint().height());
    197 #endif /* Q_WS_MAC */
    198     mWtFilterHandler->layout()->addWidget (m_pToolBar);
     178    /* Prepare tool-bar: */
     179    m_pFiltersToolBar->setUsesTextLabel(false);
     180    m_pFiltersToolBar->setIconSize(QSize(16, 16));
     181    m_pFiltersToolBar->setOrientation(Qt::Vertical);
     182    m_pFiltersToolBar->addAction(mNewAction);
     183    m_pFiltersToolBar->addAction(mAddAction);
     184    m_pFiltersToolBar->addAction(mEdtAction);
     185    m_pFiltersToolBar->addAction(mDelAction);
     186    m_pFiltersToolBar->addAction(mMupAction);
     187    m_pFiltersToolBar->addAction(mMdnAction);
    199188
    200189    /* Setup connections */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.ui

    r43106 r45196  
    108108         <item>
    109109          <widget class="QTreeWidget" name="mTwFilters" >
     110           <property name="sizePolicy">
     111            <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
     112             <horstretch>0</horstretch>
     113             <verstretch>0</verstretch>
     114            </sizepolicy>
     115           </property>
    110116           <property name="contextMenuPolicy" >
    111117            <enum>Qt::CustomContextMenu</enum>
     
    124130          </widget>
    125131         </item>
     132         <item>
     133          <widget class="UIToolBar" native="1" name="m_pFiltersToolBar"/>
     134         </item>
    126135        </layout>
    127136       </widget>
     
    138147   <header>QILabelSeparator.h</header>
    139148  </customwidget>
     149  <customwidget>
     150   <class>UIToolBar</class>
     151   <extends>QWidget</extends>
     152   <header>UIToolBar.h</header>
     153   <container>1</container>
     154  </customwidget>
    140155 </customwidgets>
    141156 <resources/>
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