Qt 4.8
Public Functions | Public Variables | List of all members
QPlastiqueStylePrivate Class Reference
Inheritance diagram for QPlastiqueStylePrivate:
QWindowsStylePrivate QCommonStylePrivate QStylePrivate QObjectPrivate QObjectData

Public Functions

void drawPartialFrame (QPainter *painter, const QStyleOptionComplex *option, const QRect &rect, const QWidget *widget) const
 
 QPlastiqueStylePrivate ()
 
virtual ~QPlastiqueStylePrivate ()
 
- 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
 

Public Variables

QList< QProgressBar * > bars
 
int progressBarAnimateTimer
 
QElapsedTimer timer
 
- 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
 

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 **)
 
- 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)
 

Detailed Description

Definition at line 983 of file qplastiquestyle.cpp.

Constructors and Destructors

◆ QPlastiqueStylePrivate()

QPlastiqueStylePrivate::QPlastiqueStylePrivate ( )
Warning
This function is not part of the public interface.

Definition at line 1002 of file qplastiquestyle.cpp.

1002  :
1004 #ifndef QT_NO_PROGRESSBAR
1006 #endif
1007 {
1008 }

◆ ~QPlastiqueStylePrivate()

QPlastiqueStylePrivate::~QPlastiqueStylePrivate ( )
virtual
Warning
This function is not part of the public interface.

Definition at line 1013 of file qplastiquestyle.cpp.

1014 {
1015 }

Functions

◆ drawPartialFrame()

void QPlastiqueStylePrivate::drawPartialFrame ( QPainter painter,
const QStyleOptionComplex option,
const QRect rect,
const QWidget widget 
) const

Definition at line 1053 of file qplastiquestyle.cpp.

1055 {
1056  Q_Q(const QPlastiqueStyle);
1057  bool reverse = option->direction == Qt::RightToLeft;
1058  QStyleOptionFrame frameOpt;
1059 #ifndef QT_NO_LINEEDIT
1060  if (QLineEdit *lineedit = widget->findChild<QLineEdit *>())
1061  frameOpt.initFrom(lineedit);
1062 #else
1063  Q_UNUSED(widget)
1064 #endif // QT_NO_LINEEDIT
1065 
1066  frameOpt.rect = rect;
1067  painter->save();
1068  frameOpt.rect.adjust(-blueFrameWidth + (reverse ? 1 : 0), -blueFrameWidth,
1069  blueFrameWidth + (reverse ? 0 : -1), blueFrameWidth);
1070  painter->setClipRect(frameOpt.rect);
1071  frameOpt.rect.adjust(reverse ? -2 : 0, 0, reverse ? 0 : 2, 0);
1072  frameOpt.lineWidth = q->pixelMetric(QStyle::PM_DefaultFrameWidth);
1073  frameOpt.midLineWidth = 0;
1074  frameOpt.state = option->state | QStyle::State_Sunken;
1075  frameOpt.palette = option->palette;
1076  q->drawPrimitive(QStyle::PE_PanelLineEdit, &frameOpt, painter, widget);
1077  painter->restore();
1078 
1079  // Draw a two pixel highlight on the flat edge
1080  if (option->state & QStyle::State_HasFocus) {
1081  painter->setPen(QPen(option->palette.highlight(), 0));
1082  QBrush focusBorder = option->palette.highlight();
1083  qBrushSetAlphaF(&focusBorder, qreal(0.65));
1084  if (!reverse) {
1085  painter->drawLine(rect.topRight() + QPoint(1, -1),
1086  rect.bottomRight() + QPoint(1, 1));
1087  painter->setPen(QPen(focusBorder, 0));
1088  painter->drawLine(rect.topRight(),
1089  rect.bottomRight());
1090  }
1091  else {
1092  painter->drawLine(rect.topLeft() + QPoint(-1, -1),
1093  rect.bottomLeft() + QPoint(-1, 1));
1094  painter->setPen(QPen(focusBorder, 0));
1095  painter->drawLine(rect.topLeft(),
1096  rect.bottomLeft());
1097  }
1098  }
1099 }
const QBrush & highlight() const
Returns the highlight brush of the current color group.
Definition: qpalette.h:140
double qreal
Definition: qglobal.h:1193
QStyle::State state
the style flags that are used when drawing the control
Definition: qstyleoption.h:88
static C reverse(const C &l)
void setClipRect(const QRectF &, Qt::ClipOperation op=Qt::ReplaceClip)
Enables clipping, and sets the clip region to the given rectangle using the given clip operation...
Definition: qpainter.cpp:2801
void restore()
Restores the current painter state (pops a saved state off the stack).
Definition: qpainter.cpp:1620
void drawLine(const QLineF &line)
Draws a line defined by line.
Definition: qpainter.h:573
The QPen class defines how a QPainter should draw lines and outlines of shapes.
Definition: qpen.h:64
void save()
Saves the current painter state (pushes the state onto a stack).
Definition: qpainter.cpp:1590
#define Q_Q(Class)
Definition: qglobal.h:2483
int lineWidth
the line width for drawing the frame
Definition: qstyleoption.h:124
QPoint bottomRight() const
Returns the position of the rectangle&#39;s bottom-right corner.
Definition: qrect.h:291
static const int blueFrameWidth
void initFrom(const QWidget *w)
Definition: qstyleoption.h:99
void adjust(int x1, int y1, int x2, int y2)
Adds dx1, dy1, dx2 and dy2 respectively to the existing coordinates of the rectangle.
Definition: qrect.h:434
The QStyleOptionFrame class is used to describe the parameters for drawing a frame.
Definition: qstyleoption.h:118
T findChild(const QString &aName=QString()) const
Returns the child of this object that can be cast into type T and that is called name, or 0 if there is no such object.
Definition: qobject.h:158
QPoint topRight() const
Returns the position of the rectangle&#39;s top-right corner.
Definition: qrect.h:294
QPalette palette
the palette that should be used when painting the control
Definition: qstyleoption.h:92
The QBrush class defines the fill pattern of shapes drawn by QPainter.
Definition: qbrush.h:76
QPoint bottomLeft() const
Returns the position of the rectangle&#39;s bottom-left corner.
Definition: qrect.h:297
int midLineWidth
the mid-line width for drawing the frame
Definition: qstyleoption.h:125
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
Qt::LayoutDirection direction
the text layout direction that should be used when drawing text in the control
Definition: qstyleoption.h:89
The QLineEdit widget is a one-line text editor.
Definition: qlineedit.h:66
The QPlastiqueStyle class provides a widget style similar to the Plastik style available in KDE...
static void qBrushSetAlphaF(QBrush *brush, qreal alpha)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729
QRect rect
the area that should be used for various calculations and painting
Definition: qstyleoption.h:90
QPoint topLeft() const
Returns the position of the rectangle&#39;s top-left corner.
Definition: qrect.h:288

Properties

◆ bars

QList<QProgressBar *> QPlastiqueStylePrivate::bars

Definition at line 993 of file qplastiquestyle.cpp.

◆ progressBarAnimateTimer

int QPlastiqueStylePrivate::progressBarAnimateTimer

Definition at line 994 of file qplastiquestyle.cpp.

◆ timer

QElapsedTimer QPlastiqueStylePrivate::timer

Definition at line 995 of file qplastiquestyle.cpp.


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