Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::ProxyStyle Class Referencefinal

#include <ProxyStyle.h>

Inheritance diagram for sf::ProxyStyle:
[legend]
Collaboration diagram for sf::ProxyStyle:
[legend]

Public Member Functions

 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.

Constructor & Destructor Documentation

◆ ProxyStyle()

sf::ProxyStyle::ProxyStyle ( float factor,
QStyle * baseStyle = nullptr )
explicit

Constructor.

Parameters
factorDim factor between 0 and 1.
baseStyleOptional base style.
int main(int argc, char* argv[])
{
Application app(argc, argv);
// Put the proxy in between the current style.
app.setStyle(new ProxyStyle(QApplication::style()));
...
}
Definition Application.h:13
ProxyStyle(float factor, QStyle *baseStyle=nullptr)
Constructor.

Member Function Documentation

◆ drawControl()

void sf::ProxyStyle::drawControl ( ControlElement element,
const QStyleOption * option,
QPainter * painter,
const QWidget * widget = nullptr ) const
override

Overridden from base class.


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