VirtualBox

Ignore:
Timestamp:
Jul 16, 2013 2:16:44 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Global properties: Extension page: Fixing MacOS X layout bug.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp

    r45358 r47193  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIGlobalSettingsExtension class implementation.
     3 *
     4 * VBox frontends: Qt4 GUI ("VirtualBox"):
     5 * UIGlobalSettingsExtension class implementation
    46 */
    57
     
    114116}
    115117
    116 /**
    117  * Attempt the actual installation.
    118  *
    119  * This code is shared by UIGlobalSettingsExtension::sltInstallPackage and UISelectorWindow::sltOpenUrls.
    120  *
    121  * @param   strFilePath     The path to the tarball.
    122  * @param   strDigest       The digest of the file (SHA-256). Empty string if no
    123  *                          digest was performed.
    124  * @param   pParent         The parent widget.
    125  * @param   pstrExtPackName Where to return the extension pack name. Optional.
    126  */
    127 /*static*/ void UIGlobalSettingsExtension::doInstallation(QString const &strFilePath, QString const &strDigest,
    128                                                           QWidget *pParent, QString *pstrExtPackName)
     118/* static */
     119void UIGlobalSettingsExtension::doInstallation(QString const &strFilePath, QString const &strDigest,
     120                                               QWidget *pParent, QString *pstrExtPackName)
    129121{
    130122    /*
     
    272264}
    273265
    274 /* Navigation stuff: */
    275266void UIGlobalSettingsExtension::setOrderAfter(QWidget *pWidget)
    276267{
     
    279270}
    280271
    281 /* Translation stuff: */
    282272void UIGlobalSettingsExtension::retranslateUi()
    283273{
     
    290280}
    291281
    292 /* Handle current-item change fact: */
    293282void UIGlobalSettingsExtension::sltHandleCurrentItemChange(QTreeWidgetItem *pCurrentItem)
    294283{
     
    298287}
    299288
    300 /* Invoke context menu: */
    301289void UIGlobalSettingsExtension::sltShowContextMenu(const QPoint &position)
    302290{
     
    314302}
    315303
    316 /* Package add procedure: */
    317304void UIGlobalSettingsExtension::sltInstallPackage()
    318305{
     
    391378}
    392379
    393 /* Package remove procedure: */
    394380void UIGlobalSettingsExtension::sltRemovePackage()
    395381{
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.h

    r44529 r47193  
    6969    void saveFromCacheTo(QVariant &data);
    7070
    71     /* Navigation stuff: */
     71    /* Helper: Navigation stuff: */
    7272    void setOrderAfter(QWidget *pWidget);
    7373
    74     /* Translation stuff: */
     74    /* Helper: Translation stuff: */
    7575    void retranslateUi();
    7676
    7777private slots:
    7878
    79     /* Tree-widget slots: */
     79    /* Handlers: Tree-widget stuff: */
    8080    void sltHandleCurrentItemChange(QTreeWidgetItem *pCurrentItem);
    8181    void sltShowContextMenu(const QPoint &position);
    8282
    83     /* Package add/remove procedures: */
     83    /* Handlers: Package stuff: */
    8484    void sltInstallPackage();
    8585    void sltRemovePackage();
     
    9090    UISettingsCacheGlobalExtensionItem fetchData(const CExtPack &package) const;
    9191
    92     /* Actions: */
     92    /* Variables: Actions: */
    9393    QAction *m_pActionAdd;
    9494    QAction *m_pActionRemove;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.ui

    r45219 r47193  
    33 VBox frontends: Qt4 GUI ("VirtualBox"):
    44
    5  Copyright (C) 2010-2012 Oracle Corporation
     5 Copyright (C) 2010-2013 Oracle Corporation
    66
    77 This file is part of VirtualBox Open Source Edition (OSE), as
     
    1515 <class>UIGlobalSettingsExtension</class>
    1616 <widget class="QWidget" name="UIGlobalSettingsExtension">
    17   <property name="geometry">
    18    <rect>
    19     <x>0</x>
    20     <y>0</y>
    21     <width>350</width>
    22     <height>250</height>
    23    </rect>
    24   </property>
    2517  <layout class="QGridLayout">
    2618   <property name="margin">
     
    2820   </property>
    2921   <item row="0" column="0">
    30     <spacer>
    31      <property name="orientation">
    32       <enum>Qt::Horizontal</enum>
    33      </property>
    34      <property name="sizeType">
    35       <enum>QSizePolicy::Fixed</enum>
    36      </property>
    37      <property name="sizeHint">
    38       <size>
    39        <width>40</width>
    40        <height>20</height>
    41       </size>
    42      </property>
    43     </spacer>
    44    </item>
    45    <item row="0" column="1" colspan="2">
    46     <widget class="QLabel" name="m_pLanguageLabel">
     22    <widget class="QILabelSeparator" native="1" name="m_pEntensionLabel">
    4723     <property name="text">
    48       <string>&amp;Extension Packages:</string>
     24     <string>&amp;Extension Packages</string>
    4925     </property>
    5026     <property name="buddy">
     
    5329    </widget>
    5430   </item>
    55    <item row="1" column="1">
    56     <spacer>
    57      <property name="orientation">
    58       <enum>Qt::Horizontal</enum>
    59      </property>
    60      <property name="sizeType">
    61       <enum>QSizePolicy::Fixed</enum>
    62      </property>
    63      <property name="sizeHint">
    64       <size>
    65        <width>20</width>
    66        <height>0</height>
    67       </size>
    68      </property>
    69     </spacer>
    70    </item>
    71    <item row="1" column="2">
     31   <item row="1" column="0">
    7232    <widget class="QWidget" native="1" name="m_pExtensionPackContainer" >
    7333     <layout class="QHBoxLayout" name="m_pLayout1">
     
    8141       <widget class="QTreeWidget" name="m_pPackagesTree">
    8242        <property name="sizePolicy">
    83          <sizepolicy vsizetype="Expanding" hsizetype="Expanding">
     43         <sizepolicy vsizetype="MinimumExpanding" hsizetype="MinimumExpanding">
    8444          <horstretch>0</horstretch>
    8545          <verstretch>0</verstretch>
     
    12585 <customwidgets>
    12686  <customwidget>
     87   <class>QILabelSeparator</class>
     88   <extends>QLabel</extends>
     89   <header>QILabelSeparator.h</header>
     90  </customwidget>
     91  <customwidget>
    12792   <class>UIToolBar</class>
    12893   <extends>QToolBar</extends>
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.ui

    r47191 r47193  
    2020   </property>
    2121   <item row="0" column="0">
    22     <widget class="QILabelSeparator" native="1" name="m_pLanguageLabel">
     22    <widget class="QILabelSeparator" native="1" name="m_pNetworkLabel">
    2323     <property name="text">
    2424     <string>&amp;Host-only Networks</string>
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