VirtualBox

Changeset 59709 in vbox for trunk


Ignore:
Timestamp:
Feb 17, 2016 9:18:55 AM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: ​​​bugref:8088: Rework session-information window: Cleanups (part1).

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformation.cpp

    r59702 r59709  
    125125        AssertPtrReturnVoid(pParallelPorts);
    126126        {
    127             m_list.append(pParallelPorts);
     127            m_pModel->addItem(pParallelPorts);
    128128        }
    129129#endif /* VBOX_WITH_PARALLEL_PORTS */
     
    154154        m_pView->setResizeMode(QListView::Adjust);
    155155        /* Create information-delegate item: */
    156         UIInformationItem* pItem = new UIInformationItem(m_pView);
     156        UIInformationItem *pItem = new UIInformationItem(m_pView);
    157157        AssertPtrReturnVoid(pItem);
    158158        {
     
    160160        }
    161161        /* Connect datachanged signal: */
    162         connect(m_pModel, SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&)), m_pView, SLOT(updateData(const QModelIndex&, const QModelIndex&)));
     162        connect(m_pModel, SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&)),
     163                m_pView, SLOT(updateData(const QModelIndex&, const QModelIndex&)));
    163164
    164165        /* Set model: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformation.h

    r59702 r59709  
    2828#include "CConsole.h"
    2929
    30 /* Forward declartions: */
     30/* Forward declarations: */
    3131class QVBoxLayout;
    3232class UIInformationView;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationItem.cpp

    r59643 r59709  
    110110    setName(index.data().toString());
    111111    setIcon(index.data(Qt::DecorationRole).toString());
    112     setText(index.data(Qt::UserRole+1).value<UITextTable>());
    113     m_type = index.data(Qt::UserRole+2).value<InformationElementType>();
     112    setText(index.data(Qt::UserRole + 1).value<UITextTable>());
     113    m_type = index.data(Qt::UserRole + 2).value<InformationElementType>();
    114114}
    115115
Note: See TracChangeset for help on using the changeset viewer.

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