mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 20:25:29 +08:00
refs #413 Access control of convertToQString changed from protected to public.
This commit is contained in:
@@ -247,13 +247,13 @@ namespace BlackMisc
|
||||
// return this->getName(false);
|
||||
// }
|
||||
|
||||
public:
|
||||
//! \copydoc CValueObject::convertToQString
|
||||
virtual QString convertToQString(bool i18n = false) const override
|
||||
{
|
||||
return this->getSymbol(i18n);
|
||||
}
|
||||
|
||||
public:
|
||||
//! \copydoc CValueObject::marshallToDbus
|
||||
void marshallToDbus(QDBusArgument &argument) const
|
||||
{
|
||||
|
||||
@@ -222,8 +222,10 @@ namespace BlackMisc
|
||||
//! \copydoc CValueObject::setPropertyByIndex
|
||||
virtual void setPropertyByIndex(const CVariant &variant, const BlackMisc::CPropertyIndex &index) override;
|
||||
|
||||
protected:
|
||||
//! \copydoc CValueObject::convertToQString
|
||||
virtual QString convertToQString(bool i18n = false) const override;
|
||||
|
||||
protected:
|
||||
//! Default constructor
|
||||
//! \todo Remove as part of MS' CValueObject refactoring
|
||||
CPhysicalQuantity();
|
||||
@@ -234,9 +236,6 @@ namespace BlackMisc
|
||||
//! Constructor by parsed string, e.g. 10m
|
||||
CPhysicalQuantity(const QString &unitString);
|
||||
|
||||
//! \copydoc CValueObject::convertToQString
|
||||
virtual QString convertToQString(bool i18n = false) const override;
|
||||
|
||||
private:
|
||||
double m_value; //!< numeric part
|
||||
MU m_unit; //!< unit part
|
||||
|
||||
@@ -29,11 +29,10 @@ namespace BlackMisc
|
||||
*/
|
||||
class BLACKMISC_EXPORT CPqString : public CValueObject<CPqString>
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
//! \copydoc CValueObject::convertToQString
|
||||
virtual QString convertToQString(bool i18n = false) const override;
|
||||
|
||||
public:
|
||||
//! Number separators / group separators
|
||||
enum SeparatorMode
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user