儲存庫 vbox 的更動 62670
- 時間撮記:
- 2016-7-29 上午06:51:40 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationItem.cpp
r60021 r62670 27 27 28 28 /* GUI includes: */ 29 # include "UIIconPool.h" 29 30 # include "UIInformationItem.h" 30 31 # include "VBoxGlobal.h" … … 38 39 m_pTextDocument = new QTextDocument(this); 39 40 AssertPtrReturnVoid(m_pTextDocument); 41 42 /* Dummy initialization of icon-string (to avoid assertion in icon-pool when model is empty): */ 43 m_strIcon = ":/machine_16px.png"; 40 44 } 41 45 … … 150 154 /* Details templates: */ 151 155 static const char *sSectionBoldTpl = 152 "<tr><td width=22 rowspan=%1 align=left><img width=16 height=16 src='%2'></td>"156 "<tr><td width=22 rowspan=%1 align=left><img src=\"image://%2\" /></td>" 153 157 "<td><b><nobr>%3</nobr></b></td></tr>" 154 158 "%4"; … … 156 160 "<tr><td width=200><nobr>%1</nobr></td><td/><td>%2</td></tr>"; 157 161 const QString §ionTpl = sSectionBoldTpl; 162 163 /* Initialize icon tag: */ 164 const QString strIconTag = QString("image://%1").arg(m_strIcon); 158 165 159 166 /* Compose details report: */ … … 172 179 } 173 180 181 /* Add pixmap to text-document as image resource: */ 182 m_pTextDocument->addResource(QTextDocument::ImageResource, QUrl(strIconTag), UIIconPool::pixmap(m_strIcon)); 183 174 184 /* Set html-data: */ 175 185 m_pTextDocument->setHtml(report);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器