VirtualBox

Changeset 97654 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 22, 2022 12:38:58 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154707
Message:

FE/Qt: bugref:9898: Migrating to Qt6; What can actually go wrong #1.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/activity/UIMonitorCommon.cpp

    r96407 r97654  
    107107                QXmlStreamAttributes attributes = xmlReader.attributes();
    108108                quint64 iCounter = attributes.value("c").toULongLong();
    109                 xmlData.push_back(UIDebuggerMetricData(attributes.value("name"), iCounter));
     109                xmlData.push_back(UIDebuggerMetricData(attributes.value("name").toString(), iCounter));
    110110            }
    111111            else if (xmlReader.name() == QLatin1String("U64"))
     
    113113                QXmlStreamAttributes attributes = xmlReader.attributes();
    114114                quint64 iCounter = attributes.value("val").toULongLong();
    115                 xmlData.push_back(UIDebuggerMetricData(attributes.value("name"), iCounter));
     115                xmlData.push_back(UIDebuggerMetricData(attributes.value("name").toString(), iCounter));
    116116            }
    117117            xmlReader.skipCurrentElement();
  • trunk/src/VBox/Frontends/VirtualBox/src/activity/UIMonitorCommon.h

    r96407 r97654  
    3737    UIDebuggerMetricData()
    3838        : m_counter(0){}
    39 #ifdef VBOX_IS_QT6_OR_LATER
    40     UIDebuggerMetricData(const QStringView &strName, quint64 counter)
    41 #else
    42     UIDebuggerMetricData(const QStringRef &strName, quint64 counter)
    43 #endif
    44         : m_strName(strName.toString())
     39    UIDebuggerMetricData(const QString &strName, quint64 counter)
     40        : m_strName(strName)
    4541        , m_counter(counter){}
    4642    QString m_strName;
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