Changeset 60696 in vbox
- Timestamp:
- Apr 25, 2016 5:48:54 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 106869
- 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 122 122 } 123 123 124 Q LineEdit* UINameAndSystemEditor::nameEditor() const125 { 126 return m_pEditorName ;124 QString UINameAndSystemEditor::name() const 125 { 126 return m_pEditorName->text(); 127 127 } 128 128 … … 132 132 } 133 133 134 QString UINameAndSystemEditor::name() const135 { 136 return m_ pEditorName->text();134 CGuestOSType UINameAndSystemEditor::type() const 135 { 136 return m_type; 137 137 } 138 138 … … 156 156 } 157 157 158 CGuestOSType UINameAndSystemEditor::type() const159 {160 return m_type;161 }162 163 158 void UINameAndSystemEditor::retranslateUi() 164 159 { 165 160 m_pLabelName->setText(tr("N&ame:")); 161 m_pLabelFamily->setText(tr("&Type:")); 162 m_pLabelType->setText(tr("&Version:")); 166 163 m_pEditorName->setWhatsThis(tr("Holds the name of the virtual machine.")); 167 m_pLabelFamily->setText(tr("&Type:"));168 164 m_pComboFamily->setWhatsThis(tr("Selects the operating system family that " 169 165 "you plan to install into this virtual machine.")); 170 m_pLabelType->setText(tr("&Version:"));171 166 m_pComboType->setWhatsThis(tr("Selects the operating system type that " 172 167 "you plan to install into this virtual machine " -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.h
r60694 r60696 52 52 53 53 /** Returns the VM name editor. */ 54 QLineEdit* nameEditor() const ;54 QLineEdit* nameEditor() const { return m_pEditorName; } 55 55 56 /** Returns the VM name. */ 57 QString name() const; 56 58 /** Defines the VM @a strName. */ 57 59 void setName(const QString &strName); 58 /** Returns the VM name. */59 QString name() const;60 60 61 /** Returns the VM OS type. */ 62 CGuestOSType type() const; 61 63 /** Defines the VM OS @a type. */ 62 64 void setType(const CGuestOSType &type); 63 /** Returns the VM OS type. */64 CGuestOSType type() const;65 65 66 66 protected:
Note:
See TracChangeset
for help on using the changeset viewer.