Changeset 91328 in vbox
- Timestamp:
- Sep 22, 2021 3:15:09 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.h
r87718 r91328 128 128 * and a host version are derived from this base. Each of these children 129 129 * populates the UICustomFileSystemModel by scanning the file system 130 * differently. The file struct re kept in this class as a tree. */130 * differently. The file structure kept in this class as a tree. */ 131 131 class UIFileManagerTable : public QIWithRetranslateUI<QWidget> 132 132 { -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoContentBrowser.cpp
r91235 r91328 23 23 #include <QHeaderView> 24 24 #include <QMimeData> 25 #include <QTableView>26 25 #include <QTreeView> 27 26 … … 30 29 #include "UIPathOperations.h" 31 30 #include "UIVisoContentBrowser.h" 31 #include "QITableView.h" 32 32 33 33 /********************************************************************************************************************************* … … 36 36 37 37 /** An QTableView extension mainly used to handle dropeed file objects from the host browser. */ 38 class UIVisoContentTableView : public Q TableView38 class UIVisoContentTableView : public QITableView 39 39 { 40 40 Q_OBJECT; … … 77 77 *********************************************************************************************************************************/ 78 78 UIVisoContentTableView::UIVisoContentTableView(QWidget *pParent /* = 0 */) 79 :Q TableView(pParent)79 :QITableView(pParent) 80 80 { 81 81 } … … 481 481 else 482 482 { 483 QItemSelectionModel *selectionModel = m_pTreeView->selectionModel();484 if (selectionModel)485 {483 if (m_pTreeView && m_pTreeView->selectionModel()) 484 { 485 QItemSelectionModel *selectionModel = m_pTreeView->selectionModel(); 486 486 if (!selectionModel->selectedIndexes().isEmpty()) 487 487 { … … 579 579 else if (index.model() == m_pModel) 580 580 return m_pTableProxyModel->mapFromSource(index); 581 /* else if (index.model() == m_pTreeProxyModel): */ 582 return m_pTableProxyModel->mapFromSource(m_pTreeProxyModel->mapToSource(index)); 581 else if (index.model() == m_pTreeProxyModel) 582 return m_pTableProxyModel->mapFromSource(m_pTreeProxyModel->mapToSource(index)); 583 return QModelIndex(); 583 584 } 584 585 … … 592 593 else if (index.model() == m_pModel) 593 594 return m_pTreeProxyModel->mapFromSource(index); 594 /* else if (index.model() == m_pTableProxyModel): */ 595 return m_pTreeProxyModel->mapFromSource(m_pTableProxyModel->mapToSource(index)); 595 else if (index.model() == m_pTableProxyModel) 596 return m_pTreeProxyModel->mapFromSource(m_pTableProxyModel->mapToSource(index)); 597 return QModelIndex(); 596 598 } 597 599 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp
r91300 r91328 145 145 m_pRenameAction->setToolTip(QApplication::translate("UIVisoCreator", "Rename the selected object")); 146 146 if (m_pButtonBox && m_pButtonBox->button(QDialogButtonBox::Ok)) 147 { 147 148 m_pButtonBox->button(QDialogButtonBox::Ok)->setText(QApplication::translate("UIVisoCreator", "C&reate")); 149 m_pButtonBox->button(QDialogButtonBox::Ok)->setToolTip(QApplication::translate("UIVisoCreator", "Creates VISO file with the selected content")); 150 } 151 if (m_pButtonBox && m_pButtonBox->button(QDialogButtonBox::Help)) 152 m_pButtonBox->button(QDialogButtonBox::Help)->setToolTip(QApplication::translate("UIVisoCreator", "Opens the help browser and navigates to the related section")); 148 153 } 149 154 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoHostBrowser.cpp
r91235 r91328 20 20 #include <QHeaderView> 21 21 #include <QMimeData> 22 #include <QTableView>23 22 #include <QTextEdit> 24 23 #include <QTreeView> 25 24 26 25 /* GUI includes: */ 26 #include "QITableView.h" 27 27 #include "UIVisoHostBrowser.h" 28 28 … … 36 36 37 37 public: 38 38 39 virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const /* override */; 39 40 UIVisoHostBrowserModel(QObject *pParent); … … 149 150 } 150 151 151 m_pTableView = new Q TableView;152 m_pTableView = new QITableView; 152 153 if (m_pTableView) 153 154 { -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoHostBrowser.h
r82968 r91328 27 27 /* Forward declarations: */ 28 28 class QItemSelection; 29 class Q TableView;29 class QITableView; 30 30 class UIVisoHostBrowserModel; 31 31 … … 72 72 UIVisoHostBrowserModel *m_pTreeModel; 73 73 UIVisoHostBrowserModel *m_pTableModel; 74 Q TableView*m_pTableView;74 QITableView *m_pTableView; 75 75 }; 76 76
Note:
See TracChangeset
for help on using the changeset viewer.