15#include <QtWidgets/qframe.h>
30 virtual void paintEvent(QPaintEvent* _event)
override;
32 virtual QWidget*
getQWidget(
void)
override {
return this; };
33 virtual const QWidget*
getQWidget(
void)
const override {
return this; };
39 void slotGlobalStyleChanged(
const ColorStyle& _style);
42 bool m_maintainAspectRatio;
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition ColorStyle.h:24
Definition Painter2D.h:17
Definition Painter2DPreview.h:21
virtual QWidget * getQWidget(void) override
Returns a pointer to the root widget of this object.
Definition Painter2DPreview.h:32
void setMaintainAspectRatio(bool _maintain)
Definition Painter2DPreview.h:35
bool isMaintainAspectRatio(void) const
Definition Painter2DPreview.h:36
virtual const QWidget * getQWidget(void) const override
Definition Painter2DPreview.h:33