- Timestamp:
- Apr 23, 2009 3:44:55 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 46384
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxApplianceEditorWgt.h
r18384 r19149 171 171 QVariant headerData (int aSection, Qt::Orientation aOrientation, int aRole) const; 172 172 173 QModelIndex buddy (const QModelIndex &aIndex) const; 174 173 175 void restoreDefaults (const QModelIndex& aParent = QModelIndex()); 174 176 void putBack(); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxApplianceEditorWgt.cpp
r18846 r19149 784 784 } 785 785 786 QModelIndex VirtualSystemModel::buddy (const QModelIndex &aIndex) const 787 { 788 if (!aIndex.isValid()) 789 return QModelIndex(); 790 791 if (aIndex.column() == ConfigValueSection) 792 return aIndex; 793 else 794 return index (aIndex.row(), ConfigValueSection, aIndex.parent()); 795 } 796 786 797 void VirtualSystemModel::restoreDefaults (const QModelIndex& aParent /* = QModelIndex() */) 787 798 { … … 980 991 mTvSettings->setRootIsDecorated (false); 981 992 mTvSettings->setAlternatingRowColors (true); 993 mTvSettings->setAllColumnsShowFocus (true); 982 994 mTvSettings->header()->setStretchLastSection (true); 983 995 mTvSettings->header()->setResizeMode (QHeaderView::ResizeToContents);
Note:
See TracChangeset
for help on using the changeset viewer.