VirtualBox

Changeset 68735 in vbox for trunk


Ignore:
Timestamp:
Sep 13, 2017 9:20:09 AM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8901: Wipe a bit of HTML stuff from snapshot details.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/selector
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotDetailsWidget.cpp

    r68722 r68735  
    11371137        "%5";
    11381138    static const char *sSectionItemTpl1 =
    1139         "<tr><td><nobr><i>%1</i></nobr></td><td/><td/></tr>";
     1139        "<tr><td><nobr>%1</nobr></td><td/><td/></tr>";
    11401140    static const char *sSectionItemTpl2 =
    11411141        "<tr><td><nobr>%1:</nobr></td><td/><td>%2</td></tr>";
     
    14821482                                                                                       comAttachment.GetPort(),
    14831483                                                                                       comAttachment.GetDevice())) + strDeviceType)
    1484                                                 .arg(vboxGlobal().details(medium, false));
     1484                                                .arg(wipeHtmlStuff(vboxGlobal().details(medium, false)));
    14851485                    /* Insert that attachment into map: */
    14861486                    if (!strAttachmentInfo.isNull())
     
    17761776
    17771777/* static */
     1778QString UISnapshotDetailsWidget::wipeHtmlStuff(const QString &strString)
     1779{
     1780    return QString(strString).remove(QRegExp("<i>|</i>|<b>|</b>"));
     1781}
     1782
     1783/* static */
    17781784QString UISnapshotDetailsWidget::summarizeGenericProperties(const CNetworkAdapter &comNetwork)
    17791785{
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotDetailsWidget.h

    r68722 r68735  
    150150    QString detailsReport(const CMachine &comMachine, DetailsElementType enmType);
    151151
     152    /** Wipes the HTML stuff from the passed @a strString. */
     153    static QString wipeHtmlStuff(const QString &strString);
     154
    152155    /** Summarizes generic properties. */
    153156    static QString summarizeGenericProperties(const CNetworkAdapter &adapter);
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