Sha256: 320ee6b85fb19d5085e2372bb075af9f24ffbd4d9b5feafc2b909ab7f92f04fd
Contents?: true
Size: 577 Bytes
Versions: 12
Compression:
Stored size: 577 Bytes
Contents
#ifndef QTCUSTOMSTYLE_H #define QTCUSTOMSTYLE_H #include <QProxyStyle> #include <QStyleOption> class QtCustomStyle : public QProxyStyle { void drawControl(ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget = 0) const { if (element == QStyle::CE_CheckBox || element == QStyle::CE_RadioButton) { option->styleObject->setProperty("_q_no_animation", true); } QProxyStyle::drawControl(element, option, painter, widget); } }; #endif //QTCUSTOMSTYLE_H
Version data entries
12 entries across 12 versions & 2 rubygems