VirtualBox

Changeset 84008 in vbox


Ignore:
Timestamp:
Apr 27, 2020 2:27:53 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137576
Message:

FE/Qt: bugref:9653: Extend UIFormEditorWidget with possibility to edit abstract set of form fields specified directly.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFormEditorWidget.cpp

    r83961 r84008  
    14391439}
    14401440
     1441void UIFormEditorWidget::setValues(const QVector<CFormValue> &values)
     1442{
     1443    m_pTableModel->setFormValues(values);
     1444    adjustTable();
     1445}
     1446
    14411447void UIFormEditorWidget::setForm(const CForm &comForm)
    14421448{
    14431449    AssertPtrReturnVoid(m_pTableModel);
    14441450    /// @todo add some check..
    1445     m_pTableModel->setFormValues(comForm.GetValues());
    1446     adjustTable();
     1451    setValues(comForm.GetValues());
    14471452}
    14481453
     
    14511456    AssertPtrReturnVoid(m_pTableModel);
    14521457    /// @todo add some check..
    1453     m_pTableModel->setFormValues(comForm.GetValues());
    1454     adjustTable();
     1458    setValues(comForm.GetValues());
    14551459}
    14561460
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFormEditorWidget.h

    r83961 r84008  
    2626#include <QWidget>
    2727
     28/* COM includes: */
     29#include "COMEnums.h"
     30#include "CFormValue.h"
     31
    2832/* Forward declarations: */
    2933class QHeaderView;
     
    4852    QHeaderView *verticalHeader() const;
    4953
     54    /** Defines @a values to be edited. */
     55    void setValues(const QVector<CFormValue> &values);
    5056    /** Defines @a comForm to be edited. */
    5157    void setForm(const CForm &comForm);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette