Changeset 89582 in vbox
- Timestamp:
- Jun 9, 2021 1:52:35 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIErrorString.cpp
r84063 r89582 19 19 #include <QApplication> 20 20 #include <QObject> 21 #include <QPalette> 21 22 22 23 /* GUI includes: */ … … 99 100 return formatErrorInfo(comErrorInfo); 100 101 /* Handle NULL error-info otherwise: */ 101 return QString("<table bgcolor=#EEEEEE border=0 cellspacing=5 cellpadding=0 width=100%>" 102 "<tr><td>%1</td><td><tt>%2</tt></td></tr></table>") 102 return QString("<table bgcolor=%1 border=0 cellspacing=5 cellpadding=0 width=100%>" 103 "<tr><td>%2</td><td><tt>%3</tt></td></tr></table>") 104 .arg(QApplication::palette().color(QPalette::Active, QPalette::Window).name(QColor::HexRgb)) 103 105 .arg(QApplication::translate("UIErrorString", "Result Code: ", "error info")) 104 106 .arg(formatRCFull(comProgress.GetResultCode())) … … 152 154 } 153 155 154 strFormatted += "<!--EOM--><table bgcolor=#EEEEEE border=0 cellspacing=5 "155 "cellpadding=0 width=100%>";156 strFormatted += QString("<!--EOM--><table bgcolor=%1 border=0 cellspacing=5 cellpadding=0 width=100%>") 157 .arg(QApplication::palette().color(QPalette::Active, QPalette::Window).name(QColor::HexRgb)); 156 158 157 159 bool fHaveResultCode = false; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r88247 r89582 2572 2572 formatted.prepend(QString("<p>%1.</p>").arg(uiCommon().emphasize(strErrorMsg))); 2573 2573 if (!strErrorId.isEmpty()) 2574 formatted += QString("<table bgcolor= #EEEEEEborder=0 cellspacing=5 "2574 formatted += QString("<table bgcolor=%1 border=0 cellspacing=5 " 2575 2575 "cellpadding=0 width=100%>" 2576 "<tr><td>% 1</td><td>%2</td></tr>"2577 "<tr><td>% 3</td><td>%4</td></tr>"2576 "<tr><td>%2</td><td>%3</td></tr>" 2577 "<tr><td>%4</td><td>%5</td></tr>" 2578 2578 "</table>") 2579 .arg(QApplication::palette().color(QPalette::Active, QPalette::Window).name(QColor::HexRgb)) 2579 2580 .arg(tr("<nobr>Error ID: </nobr>", "runtime error info"), strErrorId) 2580 2581 .arg(tr("Severity: ", "runtime error info"), severity);
Note:
See TracChangeset
for help on using the changeset viewer.