qskinny/examples/automotive/SkinFactory.h

32 lines
543 B
C
Raw Normal View History

#ifndef SKIN_FACTORY_H
#define SKIN_FACTORY_H
2017-07-25 21:34:27 +02:00
#include <QskSkinFactory.h>
class SkinFactory : public QskSkinFactory
{
Q_OBJECT
2018-08-03 08:15:28 +02:00
public:
enum GraphicRoles
{
2019-02-26 21:49:39 +01:00
// to be visible on a button
Button,
2019-02-26 21:49:39 +01:00
// to be visible on header/footer
Indicator,
// in contrast to the background pixmap
Vehicle
};
2018-07-31 17:32:25 +02:00
QStringList skinNames() const override;
QskSkin* createSkin( const QString& skinName ) override;
2017-07-25 21:34:27 +02:00
2018-08-03 08:15:28 +02:00
public Q_SLOTS:
2017-07-25 21:34:27 +02:00
void rotateSkin();
void toggleScheme();
};
#endif