libyui-qt  2.46.13
QY2Styler Class Reference
Inheritance diagram for QY2Styler:
Collaboration diagram for QY2Styler:

Public Member Functions

void loadStyleSheet (const QString &file)
 
void setStyleSheet (const QString &text)
 
QString themeDir () const
 
void registerWidget (QWidget *widget)
 
void unregisterWidget (QWidget *widget)
 
void registerChildWidget (QWidget *parent, QWidget *widget)
 
QString textStyle () const
 
bool updateRendering (QWidget *wid)
 

Static Public Member Functions

static QY2Stylerstyler ()
 

Protected Member Functions

 QY2Styler (QObject *parent)
 Constructor. More...
 
void renderParent (QWidget *wid)
 
QImage getScaled (const QString name, const QSize &size)
 
void processUrls (QString &text)
 Search and replace some self-defined macros in the style sheet. More...
 
bool eventFilter (QObject *obj, QEvent *ev)
 

Detailed Description

Definition at line 36 of file QY2Styler.h.

Constructor & Destructor Documentation

QY2Styler::QY2Styler ( QObject *  parent)
protected

Constructor.

Use the static styler() function instead to return the singleton for this class.

Definition at line 53 of file QY2Styler.cc.

Member Function Documentation

void QY2Styler::processUrls ( QString &  text)
protected

Search and replace some self-defined macros in the style sheet.

Among other things, expands the file name inside url( filename.png ) in the style sheet with the full path.

Definition at line 116 of file QY2Styler.cc.


The documentation for this class was generated from the following files: