VirtualBox

Changeset 60696 in vbox


Ignore:
Timestamp:
Apr 25, 2016 5:48:54 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106869
Message:

FE/Qt: ​​​​​​​​​bugref:6769: Rework/cleanup for VM properties editor (part 03): Moving.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/widgets
Files:
2 edited

Legend:

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

    r60694 r60696  
    122122}
    123123
    124 QLineEdit* UINameAndSystemEditor::nameEditor() const
    125 {
    126     return m_pEditorName;
     124QString UINameAndSystemEditor::name() const
     125{
     126    return m_pEditorName->text();
    127127}
    128128
     
    132132}
    133133
    134 QString UINameAndSystemEditor::name() const
    135 {
    136     return m_pEditorName->text();
     134CGuestOSType UINameAndSystemEditor::type() const
     135{
     136    return m_type;
    137137}
    138138
     
    156156}
    157157
    158 CGuestOSType UINameAndSystemEditor::type() const
    159 {
    160     return m_type;
    161 }
    162 
    163158void UINameAndSystemEditor::retranslateUi()
    164159{
    165160    m_pLabelName->setText(tr("N&ame:"));
     161    m_pLabelFamily->setText(tr("&Type:"));
     162    m_pLabelType->setText(tr("&Version:"));
    166163    m_pEditorName->setWhatsThis(tr("Holds the name of the virtual machine."));
    167     m_pLabelFamily->setText(tr("&Type:"));
    168164    m_pComboFamily->setWhatsThis(tr("Selects the operating system family that "
    169165                                    "you plan to install into this virtual machine."));
    170     m_pLabelType->setText(tr("&Version:"));
    171166    m_pComboType->setWhatsThis(tr("Selects the operating system type that "
    172167                                  "you plan to install into this virtual machine "
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.h

    r60694 r60696  
    5252
    5353    /** Returns the VM name editor. */
    54     QLineEdit* nameEditor() const;
     54    QLineEdit* nameEditor() const { return m_pEditorName; }
    5555
     56    /** Returns the VM name. */
     57    QString name() const;
    5658    /** Defines the VM @a strName. */
    5759    void setName(const QString &strName);
    58     /** Returns the VM name. */
    59     QString name() const;
    6060
     61    /** Returns the VM OS type. */
     62    CGuestOSType type() const;
    6163    /** Defines the VM OS @a type. */
    6264    void setType(const CGuestOSType &type);
    63     /** Returns the VM OS type. */
    64     CGuestOSType type() const;
    6565
    6666protected:
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