[libcalamaresui] Remove the special * operator for string-enums in branding

- This is a good example of being overly clever in C++
- the whole API with an enum requesting a specific string is a bit weird,
  although it makes sense from the 'might need more strings specified'
  point of view.
This commit is contained in:
Adriaan de Groot 2020-05-01 15:59:32 +02:00
parent 7d8e54ba47
commit 62696a3a48

View File

@ -209,6 +209,11 @@ public:
public slots:
QString string( StringEntry stringEntry ) const;
QString versionedName() const { return string( VersionedName ); }
QString productName() const { return string( ProductName ); }
QString shortProductName() const { return string( ShortProductName ); }
QString shortVersionedName() const { return string( ShortVersionedName ); }
QString styleString( StyleEntry styleEntry ) const;
QString imagePath( ImageEntry imageEntry ) const;
@ -249,13 +254,6 @@ private:
PanelSide m_navigationSide = PanelSide::Bottom;
};
template < typename U >
inline QString
operator*( U e )
{
return Branding::instance()->string( e );
}
} // namespace Calamares
#endif // BRANDING_H