[libcalamaresui] Expose the branding strings & urls to qml
This commit is contained in:
parent
152c3352c2
commit
15d8503726
@ -146,9 +146,6 @@ public:
|
||||
QString slideshowPath() const { return m_slideshowPath; }
|
||||
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;
|
||||
|
||||
/** @brief Look up an image in the branding directory or as an icon
|
||||
@ -185,6 +182,11 @@ public:
|
||||
*/
|
||||
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:
|
||||
static Branding* s_instance;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user