儲存庫 vbox 的更動 65327
- 時間撮記:
- 2017-1-16 下午01:23:26 (8 年 以前)
- 位置:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/information
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationItem.cpp
r63344 r65327 33 33 34 34 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 35 35 36 36 37 UIInformationItem::UIInformationItem(QObject *pParent) … … 106 107 /* Update data: */ 107 108 updateData(index); 108 109 /* If there is something to paint: */ 109 110 if (m_text.count() != 0) 110 111 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationItem.h
r59643 r65327 34 34 class QTextDocument; 35 35 36 /* Type defs: */36 /* Type definitions: */ 37 37 typedef QPair<QString, QString> UITextTableLine; 38 38 typedef QList<UITextTableLine> UITextTable; 39 39 40 40 Q_DECLARE_METATYPE(UITextTable); 41 41 42 42 43 /** QStyledItemDelegate extension … … 48 49 public: 49 50 50 /** Constructs information-item bypassing @a pParent to the base-class. */51 /** Constructs information-item passing @a pParent to the base-class. */ 51 52 UIInformationItem(QObject *pParent = 0); 52 53 … … 59 60 /** Returns the text-data of information-item. */ 60 61 const UITextTable& text() const; 61 /** Defines the text-data of information-item . */62 /** Defines the text-data of information-item as @a text. */ 62 63 void setText(const UITextTable &text) const; 63 64 64 /** P aint routine. */65 /** Performs painting for @a index using @a pPainter and @a option set. */ 65 66 void paint(QPainter *pPainter, const QStyleOptionViewItem &option, const QModelIndex &index) const; 66 67 67 /** Size-hint calculation routine. */68 /** Calculates size-hint for @a index using @a option set. */ 68 69 QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; 69 70 70 /** Updates data for theitem with @a index. */71 /** Updates data for information-item with @a index. */ 71 72 void updateData(const QModelIndex &index) const; 72 73 73 /** returns html data. */74 /** Returns html data. */ 74 75 QString htmlData(); 75 76 76 77 private: 78 77 79 /** Updates text-layout. */ 78 80 void updateTextLayout() const;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器