VirtualBox

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


Ignore:
Timestamp:
Feb 3, 2017 1:29:52 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: Message-center: Make sure there is some padding in formatted error tables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r65290 r65599  
    17321732        formatted.prepend(QString("<p>%1.</p>").arg(vboxGlobal().emphasize(strErrorMsg)));
    17331733    if (!strErrorId.isEmpty())
    1734         formatted += QString("<table bgcolor=#EEEEEE border=0 cellspacing=0 "
     1734        formatted += QString("<table bgcolor=#EEEEEE border=0 cellspacing=5 "
    17351735                             "cellpadding=0 width=100%>"
    17361736                             "<tr><td>%1</td><td>%2</td></tr>"
     
    23042304                             "that could be potentially harmful to your system. Please review the description below and only proceed "
    23052305                             "if you have obtained the extension pack from a trusted source.</p>"
    2306                              "<p><table cellpadding=0 cellspacing=0>"
     2306                             "<p><table cellpadding=0 cellspacing=5>"
    23072307                             "<tr><td><b>Name:&nbsp;&nbsp;</b></td><td>%1</td></tr>"
    23082308                             "<tr><td><b>Version:&nbsp;&nbsp;</b></td><td>%2</td></tr>"
     
    23352335                             tr("<p>An older version of the extension pack is already installed, would you like to upgrade? "
    23362336                                "<p>%1</p>"
    2337                                 "<p><table cellpadding=0 cellspacing=0>"
     2337                                "<p><table cellpadding=0 cellspacing=5>"
    23382338                                "<tr><td><b>Name:&nbsp;&nbsp;</b></td><td>%2</td></tr>"
    23392339                                "<tr><td><b>New Version:&nbsp;&nbsp;</b></td><td>%3</td></tr>"
     
    23482348                             tr("<p>An newer version of the extension pack is already installed, would you like to downgrade? "
    23492349                                "<p>%1</p>"
    2350                                 "<p><table cellpadding=0 cellspacing=0>"
     2350                                "<p><table cellpadding=0 cellspacing=5>"
    23512351                                "<tr><td><b>Name:&nbsp;&nbsp;</b></td><td>%2</td></tr>"
    23522352                                "<tr><td><b>New Version:&nbsp;&nbsp;</b></td><td>%3</td></tr>"
     
    23612361                             tr("<p>The extension pack is already installed with the same version, would you like reinstall it? "
    23622362                                "<p>%1</p>"
    2363                                 "<p><table cellpadding=0 cellspacing=0>"
     2363                                "<p><table cellpadding=0 cellspacing=5>"
    23642364                                "<tr><td><b>Name:&nbsp;&nbsp;</b></td><td>%2</td></tr>"
    23652365                                "<tr><td><b>Version:&nbsp;&nbsp;</b></td><td>%3</td></tr>"
     
    26272627        return formatErrorInfo(errorInfo);
    26282628    /* Handle NULL error-info otherwise: */
    2629     return QString("<table bgcolor=#EEEEEE border=0 cellspacing=0 cellpadding=0 width=100%>"
     2629    return QString("<table bgcolor=#EEEEEE border=0 cellspacing=5 cellpadding=0 width=100%>"
    26302630                   "<tr><td>%1</td><td><tt>%2</tt></td></tr></table>")
    26312631                   .arg(tr("Result&nbsp;Code: ", "error info"))
     
    28452845    }
    28462846
    2847     formatted += "<!--EOM--><table bgcolor=#EEEEEE border=0 cellspacing=0 "
     2847    formatted += "<!--EOM--><table bgcolor=#EEEEEE border=0 cellspacing=5 "
    28482848                 "cellpadding=0 width=100%>";
    28492849
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