VirtualBox

儲存庫 vbox 的更動 65327


忽略:
時間撮記:
2017-1-16 下午01:23:26 (8 年 以前)
作者:
vboxsync
訊息:

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

位置:
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationItem.cpp

    r63344 r65327  
    3333
    3434#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
     35
    3536
    3637UIInformationItem::UIInformationItem(QObject *pParent)
     
    106107    /* Update data: */
    107108    updateData(index);
    108 
     109    /* If there is something to paint: */
    109110    if (m_text.count() != 0)
    110111    {
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationItem.h

    r59643 r65327  
    3434class QTextDocument;
    3535
    36 /* Typedefs: */
     36/* Type definitions: */
    3737typedef QPair<QString, QString> UITextTableLine;
    3838typedef QList<UITextTableLine> UITextTable;
    3939
    4040Q_DECLARE_METATYPE(UITextTable);
     41
    4142
    4243/** QStyledItemDelegate extension
     
    4849public:
    4950
    50     /** Constructs information-item by passing @a pParent to the base-class. */
     51    /** Constructs information-item passing @a pParent to the base-class. */
    5152    UIInformationItem(QObject *pParent = 0);
    5253
     
    5960    /** Returns the text-data of information-item. */
    6061    const UITextTable& text() const;
    61     /** Defines the text-data of information-item. */
     62    /** Defines the text-data of information-item as @a text. */
    6263    void setText(const UITextTable &text) const;
    6364
    64     /** Paint routine. */
     65    /** Performs painting for @a index using @a pPainter and @a option set. */
    6566    void paint(QPainter *pPainter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
    6667
    67     /** Size-hint calculation routine. */
     68    /** Calculates size-hint for @a index using @a option set. */
    6869    QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
    6970
    70     /** Updates data for the item with @a index. */
     71    /** Updates data for information-item with @a index. */
    7172    void updateData(const QModelIndex &index) const;
    7273
    73     /** returns html data. */
     74    /** Returns html data. */
    7475    QString htmlData();
    7576
    7677private:
     78
    7779    /** Updates text-layout. */
    7880    void updateTextLayout() const;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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