[libcalamaresui] Expose the branding strings & urls to qml

This commit is contained in:
Camilo Higuita 2019-12-13 22:09:27 +01:00 committed by Adriaan de Groot
parent 152c3352c2
commit 15d8503726

View File

@ -146,9 +146,6 @@ public:
QString slideshowPath() const { return m_slideshowPath; } QString slideshowPath() const { return m_slideshowPath; }
int slideshowAPI() const { return m_slideshowAPI; } int slideshowAPI() const { return m_slideshowAPI; }
QString string( Branding::StringEntry stringEntry ) const;
QString styleString( Branding::StyleEntry styleEntry ) const;
QString imagePath( Branding::ImageEntry imageEntry ) const;
QPixmap image( Branding::ImageEntry imageEntry, const QSize& size ) const; QPixmap image( Branding::ImageEntry imageEntry, const QSize& size ) const;
/** @brief Look up an image in the branding directory or as an icon /** @brief Look up an image in the branding directory or as an icon
@ -185,6 +182,11 @@ public:
*/ */
void setGlobals( GlobalStorage* globalStorage ) const; void setGlobals( GlobalStorage* globalStorage ) const;
public slots:
QString string( Branding::StringEntry stringEntry ) const;
QString styleString( Branding::StyleEntry styleEntry ) const;
QString imagePath( Branding::ImageEntry imageEntry ) const;
private: private:
static Branding* s_instance; static Branding* s_instance;