Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Classes  ·  Annotées  ·  Hiérarchie  ·  Fonctions  ·  Structure  · 

QPlatinumStyle Class Reference


Platinum Look and Feel More...

#include <qplatinumstyle.h>

Inherits QWindowsStyle.

List of all member functions.

Public Members

  • QPlatinumStyle () 
  • virtual ~QPlatinumStyle () 
  • virtual void drawButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 ) 
  • ScrollControl scrollBarPointOver ( const QScrollBar * sb, int sliderStart, const QPoint & p ) 
  • virtual int maximumSliderDragDistance () const

Protected Members

  • QColor mixedColor ( const QColor &, const QColor & ) 
  • void drawRiffles ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool horizontal ) 

Detailed Description

Platinum Look and Feel

This class implements the Platinum look and feel. It's an experimental class that tries to resemble a Macintosh-like GUI style with the QStyle system. The emulation is, however, far from being perfect yet.


Member Function Documentation

QPlatinumStyle::QPlatinumStyle ()

Constructs a QPlatinumStyle.

QPlatinumStyle::~QPlatinumStyle () [virtual]

Destructs the style.

QRect QPlatinumStyle::buttonRect ( int x, int y, int w, int h ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

QRect QPlatinumStyle::comboButtonFocusRect ( int x, int y, int w, int h ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

QRect QPlatinumStyle::comboButtonRect ( int x, int y, int w, int h ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::drawBevelButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::drawButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 ) [virtual]

Draws a press-sensitive shape.

Reimplemented from QStyle.

void QPlatinumStyle::drawCheckMark ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool act, bool dis ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::drawComboButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool = FALSE, bool editable = FALSE, bool = TRUE, const QBrush * fill = 0 ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::drawExclusiveIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool on, bool down = FALSE, bool = TRUE ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::drawIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int s, bool down = FALSE, bool = TRUE ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::drawIndicatorMask ( QPainter * p, int x, int y, int w, int h, int s ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::drawPopupMenuItem ( QPainter * p, bool checkable, int maxpmw, int tab, QMenuItem * mi, const QPalette & pal, bool act, bool enabled, int x, int y, int w, int h ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::drawPopupPanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int lineWidth = 2, const QBrush * fill = 0 ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::drawPushButton ( QPushButton * btn, QPainter * p ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::drawPushButtonLabel ( QPushButton * btn, QPainter * p ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::drawRiffles ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool horizontal ) [protected]

draw the nifty Macintosh decoration used on sliders.

void QPlatinumStyle::drawScrollBarBackground ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool horizontal, const QBrush * fill = 0 ) [protected]

Reimplemented for internal reasons; the API is not affected.

void QPlatinumStyle::drawScrollBarControls ( QPainter * p, const QScrollBar * sb, int sliderStart, uint controls, uint activeControl ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::drawSlider ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation orient, bool, bool ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::drawSliderGroove ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, QCOORD c, Orientation orient ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::drawSliderMask ( QPainter * p, int x, int y, int w, int h, Orientation orient, bool, bool ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

QSize QPlatinumStyle::exclusiveIndicatorSize () const [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

int QPlatinumStyle::extraPopupMenuItemWidth ( bool checkable, int maxpmw, QMenuItem * mi, const QFontMetrics & fm ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::getButtonShift ( int & x, int & y ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

QSize QPlatinumStyle::indicatorSize () const [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

int QPlatinumStyle::maximumSliderDragDistance () const [virtual]

Reimplementation from QWindowsStyle to disable the Windows typical jump back when dragging controls.

See also QStyle.

Reimplemented from QStyle.

QColor QPlatinumStyle::mixedColor ( const QColor & c1, const QColor & c2 ) [protected]

mixes two colors to a new colors.

void QPlatinumStyle::polishPopupMenu ( QPopupMenu * p ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

int QPlatinumStyle::popupMenuItemHeight ( bool checkable, QMenuItem * mi, const QFontMetrics & fm ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QPlatinumStyle::scrollBarMetrics ( const QScrollBar * sb, int & sliderMin, int & sliderMax, int & sliderLength, int & buttonDim ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

int QPlatinumStyle::sliderLength () const [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.


Search the documentation, FAQ, qt-interest archive and more (uses www.trolltech.com):


This file is part of the Qt toolkit, copyright © 1995-2005 Trolltech, all rights reserved.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 2.3
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web