Logo Search packages:      
Sourcecode: kbruch version File versions  Download package

Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

RatioWidget Class Reference

#include <ratiowidget.h>

Inheritance diagram for RatioWidget:
Inheritance graph
[legend]
Collaboration diagram for RatioWidget:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RatioWidget (QWidget *parent, const ratio para_ratio)
void setQuestionMixed (bool value)
void setRatio (const ratio para_ratio)
void updateAndRepaint ()
 ~RatioWidget ()

Protected Member Functions

virtual QSize minimumSizeHint () const
void paintMiddle (QPainter &paint, const QString &paint_str, int &x_pos, int &y_pos, QFontMetrics &fm, const QColor &color, bool addMargin=true)
void paintRatio (QPainter &paint, ratio tmp_ratio, int &x_pos, int &y_pos, QFontMetrics &fm, bool addMargin=true, bool show_mixed=true, bool show_center=false)

Protected Attributes

QColor m_colorLine
QColor m_colorNumber
QColor m_colorOperation
QFont m_font

Private Member Functions

void paintEvent (QPaintEvent *)

Private Attributes

bool m_questionMixed
ratio m_ratio

Detailed Description

class to paint the ratio

Author:
Sebastian Stein

Definition at line 38 of file ratiowidget.h.


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

Generated by  Doxygen 1.6.0   Back to index