VirtualBox

Changeset 65333 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 16, 2017 1:57:25 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Accessibility support (step 177): A bit of care for UIInformationModel: Doxy/comments.

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

Legend:

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

    r61035 r65333  
    3737#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    3838
     39
    3940UIInformationModel::UIInformationModel(QObject *pParent, const CMachine &machine, const CConsole &console)
    4041    : QAbstractListModel(pParent)
     
    4243    , m_console(console)
    4344{
    44     /* Prepare information-model: */
     45    /* Prepare: */
    4546    prepare();
    4647}
     
    112113void UIInformationModel::updateData(UIInformationDataItem *pItem)
    113114{
    114     /* Updates data: */
     115    /* Update data: */
    115116    AssertPtrReturnVoid(pItem);
    116117    int iRow = m_list.indexOf(pItem);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationModel.h

    r60021 r65333  
    4545class UIInformationDataItem;
    4646
     47
    4748/** QAbstractListModel extension
    4849  * providing GUI with information-model for view in session-information window. */
     
    5354public:
    5455
    55     /** Constructs information-model passing @a pParent to base-class.
    56       * @param machine is machine reference.
    57       * @param console is machine console reference. */
     56    /** Constructs information-model passing @a pParent to the base-class.
     57      * @param  machine  Brings the machine reference.
     58      * @param  console  Brings the machine console reference. */
    5859    UIInformationModel(QObject *pParent, const CMachine &machine, const CConsole &console);
    59 
    6060    /** Destructs information-model. */
    6161    ~UIInformationModel();
    6262
    63     /** Returns the row-count for item specified by @a parentIdx. */
     63    /** Returns the row-count for item specified by the @a parentIdx. */
    6464    int rowCount(const QModelIndex &parentIdx = QModelIndex()) const;
    6565
    66     /** Returns data for item specified by @a idx for the @a role. */
     66    /** Returns the data for item specified by the @a index and the @a role. */
    6767    QVariant data(const QModelIndex &idx, int role = Qt::DisplayRole) const;
    6868
    69     /** Adds the item. */
     69    /** Adds the @a pItem into the model. */
    7070    void addItem(UIInformationDataItem *pItem);
    7171
    72     /** Updates Data. */
     72    /** Updates the data for item specified by the @a index. */
    7373    void updateData(const QModelIndex &idx);
    7474
    7575public slots:
     76
     77    /** Updates the data for the specified @a pItem. */
    7678    void updateData(UIInformationDataItem *pItem);
    7779
    7880private:
    7981
    80     /** Prepares information-model. */
     82    /** Prepares all. */
    8183    void prepare();
    8284
     
    8486    QHash<int, QByteArray> roleNames() const;
    8587
    86     /** Holds the machine instance. */
     88    /** Holds the machine reference. */
    8789    CMachine m_machine;
    88     /** Holds the console instance. */
     90    /** Holds the machine console reference. */
    8991    CConsole m_console;
    9092    /** Holds the list of instances of information-data items. */
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