WidgetScale Class Reference

#include <WidgetScale.h>

Static Public Member Functions

static int scalePixelSize (int pixels)
 Take a "design pixel" size and scale it for the actual display. More...
 
static QSize scaleQSize (QSize size)
 

Detailed Description

Definition at line 23 of file WidgetScale.h.

Member Function Documentation

static int WidgetScale::scalePixelSize ( int  pixels)
inlinestatic

Take a "design pixel" size and scale it for the actual display.

This is relevant to hi-dpi systems that do not do pixel doubling (i.e. Windows and Linux rather than OS/X).

Definition at line 31 of file WidgetScale.h.

Referenced by Panner::paintEvent(), scaleQSize(), and PropertyBox::updatePropertyEditor().


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