- Timestamp:
- Mar 28, 2018 12:03:55 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestControlFileModel.cpp
r71350 r71536 37 37 , m_pParent(qobject_cast<UIGuestControlFileTable*>(parent)) 38 38 { 39 QList<QVariant> rootData;40 39 } 41 40 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestControlFileTable.cpp
r71509 r71536 89 89 90 90 protected: 91 91 92 virtual void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) /*override */; 92 93 void contextMenuEvent(QContextMenuEvent *pEvent); 94 95 private: 96 97 void configure(); 98 93 99 }; 94 100 … … 234 240 :QTableView(parent) 235 241 { 242 configure(); 243 } 244 245 void UIGuestControlFileView::configure() 246 { 247 setShowGrid(false); 248 setSelectionBehavior(QAbstractItemView::SelectRows); 249 verticalHeader()->setVisible(false); 250 setEditTriggers(QAbstractItemView::NoEditTriggers); 251 /* Minimize the row height: */ 252 verticalHeader()->setDefaultSectionSize(verticalHeader()->minimumSectionSize()); 253 setAlternatingRowColors(true); 236 254 } 237 255 … … 471 489 , m_uDirectoryCount(0) 472 490 , m_uSymlinkCount(0) 473 {} 491 { 492 } 474 493 475 494 … … 731 750 if (m_pView) 732 751 { 733 m_pView->setShowGrid(false);734 m_pView->setSelectionBehavior(QAbstractItemView::SelectRows);735 m_pView->verticalHeader()->setVisible(false);736 737 752 m_pMainLayout->addWidget(m_pView, 2, 0, 5, 5); 738 753 m_pView->setModel(m_pModel); 739 754 m_pView->setItemDelegate(new UIFileDelegate); 740 m_pView->setEditTriggers(QAbstractItemView::NoEditTriggers);741 /* Minimize the row height: */742 m_pView->verticalHeader()->setDefaultSectionSize(m_pView->verticalHeader()->minimumSectionSize());743 755 744 756 connect(m_pView, &UIGuestControlFileView::doubleClicked,
Note:
See TracChangeset
for help on using the changeset viewer.