VirtualBox

Ignore:
Timestamp:
Sep 15, 2020 4:14:08 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9827: Global properties / Update page: Heavy rework, replacing widgets with corresponding editor classes, reworking radio-button group stuff and performing overall cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateDefs.cpp

    r84319 r86128  
    8080}
    8181
     82VBoxUpdateData::VBoxUpdateData(const VBoxUpdateData &another)
     83    : m_strData(another.data())
     84    , m_enmPeriodIndex(another.periodIndex())
     85    , m_date(another.internalDate())
     86    , m_enmBranchIndex(another.branchIndex())
     87    , m_version(another.version())
     88{
     89}
     90
    8291bool VBoxUpdateData::isNoNeedToCheck() const
    8392{
     
    117126{
    118127    return isNoNeedToCheck() ? QCoreApplication::translate("UIUpdateManager", "Never") : m_date.toString(Qt::LocaleDate);
     128}
     129
     130QDate VBoxUpdateData::internalDate() const
     131{
     132    return m_date;
    119133}
    120134
     
    143157}
    144158
     159bool VBoxUpdateData::isEqual(const VBoxUpdateData &another) const
     160{
     161    return    true
     162           && (m_strData == another.data())
     163           && (m_enmPeriodIndex == another.periodIndex())
     164           && (m_date == another.internalDate())
     165           && (m_enmBranchIndex == another.branchIndex())
     166           && (m_version == another.version())
     167              ;
     168}
     169
     170bool VBoxUpdateData::operator==(const VBoxUpdateData &another) const
     171{
     172    return isEqual(another);
     173}
     174
     175bool VBoxUpdateData::operator!=(const VBoxUpdateData &another) const
     176{
     177    return !isEqual(another);
     178}
     179
    145180void VBoxUpdateData::decode()
    146181{
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