ginebra2/ChromeEffect.h
changeset 6 1c3b8676e58c
parent 5 0f2326c2a325
equal deleted inserted replaced
5:0f2326c2a325 6:1c3b8676e58c
    26 
    26 
    27 class QPainter;
    27 class QPainter;
    28 
    28 
    29 namespace GVA {
    29 namespace GVA {
    30 
    30 
    31 /*
    31 /*!
    32  * The ChromeEffect namespace is intended to provide settings and drawing methods that can be
    32  * The ChromeEffect namespace is intended to provide settings and drawing methods that can be
    33  * used by various classes for common display requirements, so far, just disabled mode drawing is
    33  * used by various classes for common display requirements, so far, just disabled mode drawing is
    34  * supported but more can be added...
    34  * supported but more can be added...
    35  */
    35  */
    36 namespace ChromeEffect {
    36 namespace ChromeEffect {
       
    37     /*!
       
    38      * Paint a rectangle that will give the underlying item a "disabled" look -- ie. whitewashed
       
    39      * or darkened or whatever the UI spec is.
       
    40      */
    37     void paintDisabledRect(QPainter *painter, const QRectF &rect);
    41     void paintDisabledRect(QPainter *painter, const QRectF &rect);
    38 
    42 
    39     static qreal disabledOpacity = 0.65;
    43     static qreal disabledOpacity = 0.65;
    40     static QColor disabledColor = Qt::white;
    44     static QColor disabledColor = Qt::white;
    41 }
    45 }