The QMotifStyle class provides Motif look and feel. 更多...
| 头: | #include <QMotifStyle> |
| 继承: | QCommonStyle |
| 继承者: | QCDEStyle |
| QMotifStyle (bool useHighlightCols = false) | |
| virtual | ~QMotifStyle () |
| void | setUseHighlightColors (bool arg ) |
| bool | useHighlightColors () const |
| virtual void | drawComplexControl (ComplexControl cc , const QStyleOptionComplex * opt , QPainter * p , const QWidget * widget = 0) const |
| virtual void | drawControl (ControlElement element , const QStyleOption * opt , QPainter * p , const QWidget * widget = 0) const |
| virtual void | drawPrimitive (PrimitiveElement pe , const QStyleOption * opt , QPainter * p , const QWidget * w = 0) const |
| virtual bool | event (QEvent * e ) |
| virtual int | pixelMetric (PixelMetric pm , const QStyleOption * opt = 0, const QWidget * widget = 0) const |
| virtual void | polish (QPalette & pal ) |
| virtual QSize | sizeFromContents (ContentsType ct , const QStyleOption * opt , const QSize & contentsSize , const QWidget * widget = 0) const |
| virtual QPalette | standardPalette () const |
| virtual QPixmap | standardPixmap (StandardPixmap standardPixmap , const QStyleOption * opt , const QWidget * widget = 0) const |
| virtual int | styleHint (StyleHint hint , const QStyleOption * opt = 0, const QWidget * widget = 0, QStyleHintReturn * returnData = 0) const |
| virtual QRect | subControlRect (ComplexControl cc , const QStyleOptionComplex * opt , SubControl sc , const QWidget * widget = 0) const |
| virtual QRect | subElementRect (SubElement sr , const QStyleOption * opt , const QWidget * widget = 0) const |
| virtual void | timerEvent (QTimerEvent * event ) |
The QMotifStyle class provides Motif look and feel.
This class implements the Motif look and feel. It closely resembles the original Motif look as defined by the Open Group, but with some minor improvements. The Motif style is Qt's default GUI style on Unix platforms.
另请参阅 QWindowsXPStyle , QMacStyle , QWindowsStyle , QPlastiqueStyle ,和 QCDEStyle .
构造 QMotifStyle .
若 useHighlightCols is false (the default), the style will polish the application's color palette to emulate the Motif way of highlighting, which is a simple inversion between the base and the text color.
[虚拟]
QMotifStyle::
~QMotifStyle
()
这是重载函数。
销毁样式。
[虚拟]
void
QMotifStyle::
drawComplexControl
(
ComplexControl
cc
, const
QStyleOptionComplex
*
opt
,
QPainter
*
p
, const
QWidget
*
widget
= 0) const
重实现自 QStyle::drawComplexControl ().
[虚拟]
void
QMotifStyle::
drawControl
(
ControlElement
element
, const
QStyleOption
*
opt
,
QPainter
*
p
, const
QWidget
*
widget
= 0) const
重实现自 QStyle::drawControl ().
[虚拟]
void
QMotifStyle::
drawPrimitive
(
PrimitiveElement
pe
, const
QStyleOption
*
opt
,
QPainter
*
p
, const
QWidget
*
w
= 0) const
重实现自 QStyle::drawPrimitive ().
[虚拟]
bool
QMotifStyle::
event
(
QEvent
*
e
)
重实现自 QObject::event ().
[虚拟]
int
QMotifStyle::
pixelMetric
(
PixelMetric
pm
, const
QStyleOption
*
opt
= 0, const
QWidget
*
widget
= 0) const
重实现自 QStyle::pixelMetric ().
[虚拟]
void
QMotifStyle::
polish
(
QPalette
&
pal
)
重实现自 QStyle::polish ().
若 arg is false, the style will polish the application's color palette to emulate the Motif way of highlighting, which is a simple inversion between the base and the text color.
The effect will show up the next time an application palette is set via QApplication::setPalette (). The current color palette of the application remains unchanged.
另请参阅 useHighlightColors () 和 QStyle::polish ().
[虚拟]
QSize
QMotifStyle::
sizeFromContents
(
ContentsType
ct
, const
QStyleOption
*
opt
, const
QSize
&
contentsSize
, const
QWidget
*
widget
= 0) const
重实现自 QStyle::sizeFromContents ().
[虚拟]
QPalette
QMotifStyle::
standardPalette
() const
重实现自 QStyle::standardPalette ().
[虚拟]
QPixmap
QMotifStyle::
standardPixmap
(
StandardPixmap
standardPixmap
, const
QStyleOption
*
opt
, const
QWidget
*
widget
= 0) const
重实现自 QStyle::standardPixmap ().
[虚拟]
int
QMotifStyle::
styleHint
(
StyleHint
hint
, const
QStyleOption
*
opt
= 0, const
QWidget
*
widget
= 0,
QStyleHintReturn
*
returnData
= 0) const
重实现自 QStyle::styleHint ().
[虚拟]
QRect
QMotifStyle::
subControlRect
(
ComplexControl
cc
, const
QStyleOptionComplex
*
opt
,
SubControl
sc
, const
QWidget
*
widget
= 0) const
重实现自 QStyle::subControlRect ().
[虚拟]
QRect
QMotifStyle::
subElementRect
(
SubElement
sr
, const
QStyleOption
*
opt
, const
QWidget
*
widget
= 0) const
重实现自 QStyle::subElementRect ().
[virtual protected]
void
QMotifStyle::
timerEvent
(
QTimerEvent
*
event
)
重实现自 QObject::timerEvent ().
Returns true if the style treats the highlight colors of the palette in a Motif-like manner, which is a simple inversion between the base and the text color; otherwise returns false. The default is false.
另请参阅 setUseHighlightColors ().