- Timestamp:
- Oct 31, 2016 1:31:18 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
- Files:
-
- 3 edited
-
UIMachineSettingsStorage.cpp (modified) (2 diffs)
-
UIMachineSettingsStorage.h (modified) (3 diffs)
-
UIMachineSettingsStorage.ui (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r63322 r64486 2054 2054 mDelAttAction->setIcon(iconPool()->icon(AttachmentDelEn, AttachmentDelDis)); 2055 2055 2056 /* Storage Model/View */ 2056 /* Create storage-view: */ 2057 mTwStorageTree = new StorageView(this); 2058 { 2059 /* Configure storage-view: */ 2060 mLsLeftPane->setBuddy(mTwStorageTree); 2061 /* Add storage-view into layout: */ 2062 mLtStorage->insertWidget(0, mTwStorageTree); 2063 } 2064 2065 /* Create storage-model: */ 2057 2066 mStorageModel = new StorageModel (mTwStorageTree); 2058 2067 StorageDelegate *storageDelegate = new StorageDelegate (mTwStorageTree); … … 2481 2490 Ui::UIMachineSettingsStorage::retranslateUi(this); 2482 2491 2492 /* Translate storage-view: */ 2493 mTwStorageTree->setWhatsThis(tr("Lists all storage controllers for this machine and " 2494 "the virtual images and host drives attached to them.")); 2495 2496 /* Translate tool-bar: */ 2483 2497 mAddCtrAction->setShortcut(QKeySequence("Ins")); 2484 2498 mDelCtrAction->setShortcut(QKeySequence("Del")); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h
r61442 r64486 31 31 32 32 /* GUI includes: */ 33 #include "QITreeView.h" 33 34 #include "UISettingsPage.h" 34 35 #include "UIMachineSettingsStorage.gen.h" … … 570 571 }; 571 572 Q_DECLARE_METATYPE (StorageModel::ToolTipType); 573 574 /** QITreeView subclass used as Storage-view. */ 575 class StorageView : public QITreeView 576 { 577 Q_OBJECT; 578 579 public: 580 581 /** Constructs storage-view passing @a pParent to the base-class. */ 582 StorageView(QWidget *pParent) : QITreeView(pParent) {} 583 }; 572 584 573 585 /* Storage Delegate */ … … 798 810 QString m_strMachineGuestOSTypeId; 799 811 812 /** Holds the storage-tree instance. */ 813 QITreeView *mTwStorageTree; 814 /** Holds the storage-model instance. */ 800 815 StorageModel *mStorageModel; 801 816 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.ui
r62495 r64486 51 51 <string>&Storage Tree</string> 52 52 </property> 53 <property name="buddy" >54 <cstring>mTwStorageTree</cstring>55 </property>56 53 </widget> 57 54 </item> … … 64 61 <number>0</number> 65 62 </property> 66 <item>67 <widget class="QITreeView" native="1" name="mTwStorageTree" >68 <property name="whatsThis" >69 <string>Lists all storage controllers for this machine and the virtual images and host drives attached to them.</string>70 </property>71 </widget>72 </item>73 63 <item> 74 64 <layout class="QHBoxLayout" name="mLtStorageBar" > … … 625 615 </customwidget> 626 616 <customwidget> 627 <class>QITreeView</class>628 <extends>QTreeView</extends>629 <header>QITreeView.h</header>630 <container>1</container>631 </customwidget>632 <customwidget>633 617 <class>UIToolBar</class> 634 618 <extends>QWidget</extends>
Note:
See TracChangeset
for help on using the changeset viewer.

