Changeset 95725 in vbox
- Timestamp:
- Jul 19, 2022 12:08:09 PM (2 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFormEditorWidget.cpp
r93990 r95725 464 464 void prepare(); 465 465 466 /** Return the parent table-view reference. */467 QITableView * parentTable() const;466 /** Returns the parent table-view reference. */ 467 QITableView *view() const; 468 468 469 469 /** Updates row generation values. */ … … 956 956 beginInsertRows(QModelIndex(), 0, values.size() - 1); 957 957 foreach (const CFormValue &comValue, values) 958 m_dataList << new UIFormEditorRow( parentTable(), m_pFormEditorWidget, comValue);958 m_dataList << new UIFormEditorRow(view(), m_pFormEditorWidget, comValue); 959 959 endInsertRows(); 960 960 } … … 1222 1222 { 1223 1223 /* Create dialog on-the-fly: */ 1224 QPointer<QIDialog> pDialog = new QIDialog( parentTable());1224 QPointer<QIDialog> pDialog = new QIDialog(view()); 1225 1225 if (pDialog) 1226 1226 { … … 1281 1281 } 1282 1282 1283 QITableView *UIFormEditorModel:: parentTable() const1284 { 1285 return qobject_cast<QITableView*>(parent());1283 QITableView *UIFormEditorModel::view() const 1284 { 1285 return m_pFormEditorWidget->view(); 1286 1286 } 1287 1287 … … 1394 1394 } 1395 1395 1396 UIFormEditorView *UIFormEditorWidget::view() const 1397 { 1398 return m_pTableView; 1399 } 1400 1396 1401 QHeaderView *UIFormEditorWidget::horizontalHeader() const 1397 1402 { … … 1404 1409 AssertPtrReturn(m_pTableView, 0); 1405 1410 return m_pTableView->verticalHeader(); 1411 } 1412 1413 void UIFormEditorWidget::setWhatsThis(const QString &strWhatsThis) 1414 { 1415 AssertPtrReturnVoid(m_pTableView); 1416 m_pTableView->setWhatsThis(strWhatsThis); 1406 1417 } 1407 1418 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFormEditorWidget.h
r93990 r95725 57 57 void setNotificationCenter(UINotificationCenter *pNotificationCenter) { m_pNotificationCenter = pNotificationCenter; } 58 58 59 /** Returns table-view reference. */ 60 UIFormEditorView *view() const; 59 61 /** Returns horizontal header reference. */ 60 62 QHeaderView *horizontalHeader() const; 61 63 /** Returns vertical header reference. */ 62 64 QHeaderView *verticalHeader() const; 65 /** Defines table-view @a strWhatsThis help text. */ 66 void setWhatsThis(const QString &strWhatsThis); 63 67 64 68 /** Clears form. */
Note:
See TracChangeset
for help on using the changeset viewer.