10 #ifndef QWT_PLOT_ABSTRACT_CANVAS_H 11 #define QWT_PLOT_ABSTRACT_CANVAS_H 55 void setBorderRadius(
double );
56 double borderRadius()
const;
59 QWidget* canvasWidget();
60 const QWidget* canvasWidget()
const;
62 virtual void drawFocusIndicator( QPainter * );
63 virtual void drawBorder( QPainter * );
64 virtual void drawBackground( QPainter * );
66 void fillBackground( QPainter * );
67 void drawCanvas( QPainter * );
68 void drawStyled( QPainter *,
bool );
69 void drawUnstyled( QPainter * );
71 QPainterPath borderPath2(
const QRect &rect )
const;
72 void updateStyleSheetInfo();
124 void setFrameStyle(
int style );
125 int frameStyle()
const;
127 void setFrameShadow( QFrame::Shadow );
128 QFrame::Shadow frameShadow()
const;
130 void setFrameShape( QFrame::Shape );
131 QFrame::Shape frameShape()
const;
133 void setLineWidth(
int );
134 int lineWidth()
const;
136 void setMidLineWidth(
int );
137 int midLineWidth()
const;
139 int frameWidth()
const;
140 QRect frameRect()
const;
142 virtual void invalidateBackingStore() = 0;
146 void draw( QPainter * );
149 virtual void clearBackingStore() = 0;
Don't paint a focus indicator.
QFlags< PaintAttribute > PaintAttributes
Paint attributes.
FocusIndicator
Focus indicator The default setting is NoFocusIndicator.
PaintAttribute
Paint attributes.