Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
ProxyStyle.h
Go to the documentation of this file.
1#pragma once
2#include <QProxyStyle>
3#include <misc/global.h>
4
5namespace sf
6{
7
8class _MISC_CLASS ProxyStyle final : public QProxyStyle
9{
10 public:
25 explicit ProxyStyle(float factor, QStyle* baseStyle = nullptr);
26
30 void drawControl(ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget = nullptr) const override;
31
32 private:
33 float _dimFactor;
34};
35
36}// namespace sf
Definition ProxyStyle.h:9
ProxyStyle(float factor, QStyle *baseStyle=nullptr)
Constructor.
void drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget=nullptr) const override
Overridden from base class.
#define _MISC_CLASS
Definition misc/global.h:40
Definition Application.h:10