]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/QY2Styler.h
Duncan, for you
[duncan/yast2-qt4.git] / src / QY2Styler.h
1 #ifndef QY2STYLER_H
2 #define QY2STYLER_H
3
4 #include <QObject>
5 #include <QHash>
6 #include <QString>
7 #include <QImage>
8
9 class QY2Styler : public QObject
10 {
11     Q_OBJECT
12
13 public:
14     QY2Styler( QObject *parent );
15
16     void setStyleSheet( const QString &file );
17     QString themeDir() const;
18     void registerWidget( QWidget *widget );
19
20     static QY2Styler *self() {
21         return _self;
22     }
23
24 protected:
25     void processUrls(QString &text);
26     /*
27      * Reimplemented from QObject.
28      **/
29     bool eventFilter( QObject * obj, QEvent * ev );
30
31 private:
32     QHash<QString,QString> _backgroundFn;
33     QHash<QString,QImage> _backgroundPx;
34
35     static QY2Styler *_self;
36 };
37
38 #endif