Qt 4.8
Public Functions | Static Public Functions | List of all members
QWindowsCEStylePrivate Class Reference

#include <qwindowscestyle_p.h>

Inheritance diagram for QWindowsCEStylePrivate:
QWindowsStylePrivate QCommonStylePrivate QStylePrivate QObjectPrivate QObjectData

Public Functions

 QWindowsCEStylePrivate ()
 
- Public Functions inherited from QWindowsStylePrivate
bool altDown () const
 
bool hasSeenAlt (const QWidget *widget) const
 
 QWindowsStylePrivate ()
 
void startAnimation (QObject *o, QProgressBar *bar)
 
void stopAnimation (QObject *o, QProgressBar *bar)
 
- Public Functions inherited from QCommonStylePrivate
bool isViewItemCached (const QStyleOptionViewItemV4 &option) const
 
 QCommonStylePrivate ()
 
void tabLayout (const QStyleOptionTabV3 *opt, const QWidget *widget, QRect *textRect, QRect *pixmapRect) const
 
void viewItemDrawText (QPainter *p, const QStyleOptionViewItemV4 *option, const QRect &rect) const
 
void viewItemLayout (const QStyleOptionViewItemV4 *opt, QRect *checkRect, QRect *pixmapRect, QRect *textRect, bool sizehint) const
 Set sizehint to false to layout the elements inside opt->rect. More...
 
QSize viewItemSize (const QStyleOptionViewItemV4 *option, int role) const
 
 ~QCommonStylePrivate ()
 
- Public Functions inherited from QStylePrivate
 QStylePrivate ()
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 

Static Public Functions

static void drawWinCEButton (QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken=false, const QBrush *fill=0)
 
static void drawWinCEButton (QPainter *p, const QRect &r, const QPalette &pal, bool sunken=false, const QBrush *fill=0)
 
static void drawWinCEPanel (QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken=false, const QBrush *fill=0)
 
static void drawWinCEPanel (QPainter *p, const QRect &r, const QPalette &pal, bool sunken=false, const QBrush *fill=0)
 
static void drawWinCEShades (QPainter *p, int x, int y, int w, int h, const QColor &c1, const QColor &c2, const QColor &c3, const QColor &c4, const QBrush *fill)
 
static void drawWinCEShadesSunken (QPainter *p, int x, int y, int w, int h, const QColor &c1, const QColor &c2, const QColor &c3, const QColor &c4, const QBrush *fill)
 
static void drawWinShades (QPainter *p, int x, int y, int w, int h, const QColor &c1, const QColor &c2, const QColor &c3, const QColor &c4, const QBrush *fill)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 

Additional Inherited Members

- Public Types inherited from QWindowsStylePrivate
enum  {
  windowsItemFrame = 2, windowsSepHeight = 9, windowsItemHMargin = 3, windowsItemVMargin = 2,
  windowsArrowHMargin = 6, windowsRightBorder = 15, windowsCheckMarkWidth = 12
}
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
- Public Variables inherited from QWindowsStylePrivate
QColor activeCaptionColor
 
QColor activeGradientCaptionColor
 
bool alt_down
 
QList< QProgressBar * > animatedProgressBars
 
int animateStep
 
int animateTimer
 
int animationFps
 
QColor inactiveCaptionColor
 
QColor inactiveCaptionText
 
QColor inactiveGradientCaptionColor
 
int menuBarTimer
 
QList< const QWidget * > seenAlt
 
QElapsedTimer startTime
 
- Public Variables inherited from QCommonStylePrivate
QStyleOptionViewItemV4cachedOption
 
QRect checkRect
 
QRect decorationRect
 
QRect displayRect
 
QIcon tabBarcloseButtonIcon
 
- Public Variables inherited from QStylePrivate
int layoutSpacingIndex
 
QStyleproxyStyle
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Detailed Description

Definition at line 69 of file qwindowscestyle_p.h.

Constructors and Destructors

◆ QWindowsCEStylePrivate()

QWindowsCEStylePrivate::QWindowsCEStylePrivate ( )
inline

Definition at line 73 of file qwindowscestyle_p.h.

74  { }

Functions

◆ drawWinCEButton() [1/2]

void QWindowsCEStylePrivate::drawWinCEButton ( QPainter p,
int  x,
int  y,
int  w,
int  h,
const QPalette pal,
bool  sunken = false,
const QBrush fill = 0 
)
static

Definition at line 2391 of file qwindowscestyle.cpp.

Referenced by QWindowsCEStyle::drawComplexControl(), QWindowsCEStyle::drawControl(), QWindowsCEStyle::drawPrimitive(), and QWindowsCEStylePrivate().

2393  {
2394  if (sunken)
2395  drawWinCEShadesSunken(p, x, y, w, h,
2396  pal.shadow().color(), pal.light().color(), pal.shadow().color(),
2397  pal.midlight().color(), fill);
2398  else
2399  drawWinCEShades(p, x, y, w, h,
2400  pal.midlight().color(), pal.shadow().color(), pal.button().color(),
2401  pal.dark().color(), fill);
2402 }
const QColor & color() const
Returns the brush color.
Definition: qbrush.h:183
const QBrush & dark() const
Returns the dark brush of the current color group.
Definition: qpalette.h:127
static void drawWinCEShadesSunken(QPainter *p, int x, int y, int w, int h, const QColor &c1, const QColor &c2, const QColor &c3, const QColor &c4, const QBrush *fill)
static void drawWinCEShades(QPainter *p, int x, int y, int w, int h, const QColor &c1, const QColor &c2, const QColor &c3, const QColor &c4, const QBrush *fill)
const QBrush & light() const
Returns the light brush of the current color group.
Definition: qpalette.h:126
const QBrush & midlight() const
Returns the midlight brush of the current color group.
Definition: qpalette.h:136
const QBrush & shadow() const
Returns the shadow brush of the current color group.
Definition: qpalette.h:139
const QBrush & button() const
Returns the button brush of the current color group.
Definition: qpalette.h:125

◆ drawWinCEButton() [2/2]

void QWindowsCEStylePrivate::drawWinCEButton ( QPainter p,
const QRect r,
const QPalette pal,
bool  sunken = false,
const QBrush fill = 0 
)
static

Definition at line 2417 of file qwindowscestyle.cpp.

2418  {
2419  drawWinCEButton(p, r.x(), r.y(), r.width(), r.height(), pal, sunken, fill);
2420 }
int width() const
Returns the width of the rectangle.
Definition: qrect.h:303
int height() const
Returns the height of the rectangle.
Definition: qrect.h:306
static void drawWinCEButton(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken=false, const QBrush *fill=0)
int y() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:255
int x() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:252

◆ drawWinCEPanel() [1/2]

void QWindowsCEStylePrivate::drawWinCEPanel ( QPainter p,
int  x,
int  y,
int  w,
int  h,
const QPalette pal,
bool  sunken = false,
const QBrush fill = 0 
)
static

Definition at line 2404 of file qwindowscestyle.cpp.

Referenced by QWindowsCEStyle::drawComplexControl(), QWindowsCEStyle::drawPrimitive(), and QWindowsCEStylePrivate().

2406  {
2407  if (sunken)
2408  drawWinShades(p, x, y, w, h,
2409  pal.dark().color(), pal.light().color(), pal.shadow().color(),
2410  pal.midlight().color(), fill);
2411  else
2412  drawWinShades(p, x, y, w, h,
2413  pal.light().color(), pal.shadow().color(), pal.button().color(),
2414  pal.midlight().color(), fill);
2415 }
static void drawWinShades(QPainter *p, int x, int y, int w, int h, const QColor &c1, const QColor &c2, const QColor &c3, const QColor &c4, const QBrush *fill)
const QColor & color() const
Returns the brush color.
Definition: qbrush.h:183
const QBrush & dark() const
Returns the dark brush of the current color group.
Definition: qpalette.h:127
const QBrush & light() const
Returns the light brush of the current color group.
Definition: qpalette.h:126
const QBrush & midlight() const
Returns the midlight brush of the current color group.
Definition: qpalette.h:136
const QBrush & shadow() const
Returns the shadow brush of the current color group.
Definition: qpalette.h:139
const QBrush & button() const
Returns the button brush of the current color group.
Definition: qpalette.h:125

◆ drawWinCEPanel() [2/2]

void QWindowsCEStylePrivate::drawWinCEPanel ( QPainter p,
const QRect r,
const QPalette pal,
bool  sunken = false,
const QBrush fill = 0 
)
static

Definition at line 2422 of file qwindowscestyle.cpp.

2423  {
2424  drawWinCEPanel(p, r.x(), r.y(), r.width(), r.height(), pal, sunken, fill);
2425 }
static void drawWinCEPanel(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken=false, const QBrush *fill=0)
int width() const
Returns the width of the rectangle.
Definition: qrect.h:303
int height() const
Returns the height of the rectangle.
Definition: qrect.h:306
int y() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:255
int x() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:252

◆ drawWinCEShades()

void QWindowsCEStylePrivate::drawWinCEShades ( QPainter p,
int  x,
int  y,
int  w,
int  h,
const QColor c1,
const QColor c2,
const QColor c3,
const QColor c4,
const QBrush fill 
)
static

Definition at line 2335 of file qwindowscestyle.cpp.

Referenced by QWindowsCEStylePrivate().

2339  {
2340  if (w < 2 || h < 2) // can't do anything with that
2341  return;
2342  QPen oldPen = p->pen();
2343  QPoint b[3] = { QPoint(x, y+h-1), QPoint(x+w-1, y+h-1), QPoint(x+w-1, y) };
2344  p->setPen(c2);
2345  p->drawPolyline(b, 3);
2346  if (w > 4 && h > 4) {
2347  QPoint c[3] = { QPoint(x+1, y+h-3), QPoint(x+1, y+1), QPoint(x+w-3, y+1) };
2348  p->setPen(c3);
2349  p->drawPolyline(c, 3);
2350  QPoint d[5] = { QPoint(x, y+h-2), QPoint(x+w-2, y+h-2), QPoint(x+w-2, y), QPoint(x, y), QPoint(x, y+h-2) };
2351  p->setPen(c4);
2352  p->drawPolyline(d, 5);
2353  if (fill)
2354  p->fillRect(QRect(x+2, y+2, w-4, h-4), *fill);
2355  }
2356  QPoint a[3] = { QPoint(x+1, y+h-3), QPoint(x+1, y+1), QPoint(x+w-3, y+1) };
2357  p->setPen(c1);
2358  p->drawPolyline(a, 3);
2359  p->setPen(oldPen);
2360 }
double d
Definition: qnumeric_p.h:62
unsigned char c[8]
Definition: qnumeric_p.h:62
long ASN1_INTEGER_get ASN1_INTEGER * a
The QPen class defines how a QPainter should draw lines and outlines of shapes.
Definition: qpen.h:64
const QPen & pen() const
Returns the painter&#39;s current pen.
Definition: qpainter.cpp:4152
The QPoint class defines a point in the plane using integer precision.
Definition: qpoint.h:53
void setPen(const QColor &color)
Sets the painter&#39;s pen to have style Qt::SolidLine, width 0 and the specified color.
Definition: qpainter.cpp:4047
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58
void drawPolyline(const QPointF *points, int pointCount)
Draws the polyline defined by the first pointCount points in points using the current pen...
Definition: qpainter.cpp:5055
void fillRect(const QRectF &, const QBrush &)
Fills the given rectangle with the brush specified.
Definition: qpainter.cpp:7420

◆ drawWinCEShadesSunken()

void QWindowsCEStylePrivate::drawWinCEShadesSunken ( QPainter p,
int  x,
int  y,
int  w,
int  h,
const QColor c1,
const QColor c2,
const QColor c3,
const QColor c4,
const QBrush fill 
)
static

Definition at line 2362 of file qwindowscestyle.cpp.

Referenced by QWindowsCEStylePrivate().

2366  {
2367  if (w < 2 || h < 2) // can't do anything with that
2368  return;
2369  QPen oldPen = p->pen();
2370 
2371  QPoint b[3] = { QPoint(x, y+h-1), QPoint(x+w-1, y+h-1), QPoint(x+w-1, y) };
2372  p->setPen(c2);
2373  p->drawPolyline(b, 3);
2374  if (w > 4 && h > 4) {
2375  QPoint d[3] = { QPoint(x, y+h-2), QPoint(x+w-2, y+h-2), QPoint(x+w-2, y) };
2376  p->setPen(c4);
2377  p->drawPolyline(d, 3);
2378  QPoint c[3] = { QPoint(x, y+h-2), QPoint(x, y), QPoint(x+w-2, y) };
2379  p->setPen(c3);
2380  p->drawPolyline(c, 3);
2381  if (fill)
2382  p->fillRect(QRect(x+2, y+2, w-4, h-4), *fill);
2383  }
2384  QPoint a[3] = { QPoint(x+1, y+h-3), QPoint(x+1, y+1), QPoint(x+w-3, y+1) };
2385  p->setPen(c1);
2386  p->drawPolyline(a, 3);
2387  p->setPen(oldPen);
2388 }
double d
Definition: qnumeric_p.h:62
unsigned char c[8]
Definition: qnumeric_p.h:62
long ASN1_INTEGER_get ASN1_INTEGER * a
The QPen class defines how a QPainter should draw lines and outlines of shapes.
Definition: qpen.h:64
const QPen & pen() const
Returns the painter&#39;s current pen.
Definition: qpainter.cpp:4152
The QPoint class defines a point in the plane using integer precision.
Definition: qpoint.h:53
void setPen(const QColor &color)
Sets the painter&#39;s pen to have style Qt::SolidLine, width 0 and the specified color.
Definition: qpainter.cpp:4047
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58
void drawPolyline(const QPointF *points, int pointCount)
Draws the polyline defined by the first pointCount points in points using the current pen...
Definition: qpainter.cpp:5055
void fillRect(const QRectF &, const QBrush &)
Fills the given rectangle with the brush specified.
Definition: qpainter.cpp:7420

◆ drawWinShades()

void QWindowsCEStylePrivate::drawWinShades ( QPainter p,
int  x,
int  y,
int  w,
int  h,
const QColor c1,
const QColor c2,
const QColor c3,
const QColor c4,
const QBrush fill 
)
static

Definition at line 2308 of file qwindowscestyle.cpp.

Referenced by QWindowsCEStylePrivate().

2312  {
2313  if (w < 2 || h < 2) // can't do anything with that
2314  return;
2315  QPen oldPen = p->pen();
2316  QPoint a[3] = { QPoint(x, y+h-2), QPoint(x, y), QPoint(x+w-2, y) };
2317  p->setPen(c1);
2318  p->drawPolyline(a, 3);
2319  QPoint b[3] = { QPoint(x, y+h-1), QPoint(x+w-1, y+h-1), QPoint(x+w-1, y) };
2320  p->setPen(c2);
2321  p->drawPolyline(b, 3);
2322  if (w > 4 && h > 4) {
2323  QPoint c[3] = { QPoint(x+1, y+h-3), QPoint(x+1, y+1), QPoint(x+w-3, y+1) };
2324  p->setPen(c3);
2325  p->drawPolyline(c, 3);
2326  QPoint d[3] = { QPoint(x+1, y+h-2), QPoint(x+w-2, y+h-2), QPoint(x+w-2, y+1) };
2327  p->setPen(c4);
2328  p->drawPolyline(d, 3);
2329  if (fill)
2330  p->fillRect(QRect(x+2, y+2, w-4, h-4), *fill);
2331  }
2332  p->setPen(oldPen);
2333 }
double d
Definition: qnumeric_p.h:62
unsigned char c[8]
Definition: qnumeric_p.h:62
long ASN1_INTEGER_get ASN1_INTEGER * a
The QPen class defines how a QPainter should draw lines and outlines of shapes.
Definition: qpen.h:64
const QPen & pen() const
Returns the painter&#39;s current pen.
Definition: qpainter.cpp:4152
The QPoint class defines a point in the plane using integer precision.
Definition: qpoint.h:53
void setPen(const QColor &color)
Sets the painter&#39;s pen to have style Qt::SolidLine, width 0 and the specified color.
Definition: qpainter.cpp:4047
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58
void drawPolyline(const QPointF *points, int pointCount)
Draws the polyline defined by the first pointCount points in points using the current pen...
Definition: qpainter.cpp:5055
void fillRect(const QRectF &, const QBrush &)
Fills the given rectangle with the brush specified.
Definition: qpainter.cpp:7420

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