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

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

ResultWidget Class Reference

#include <resultwidget.h>

Inheritance diagram for ResultWidget:
Inheritance graph
Collaboration diagram for ResultWidget:
Collaboration graph

List of all members.

Public Member Functions

int KindView ()
 ResultWidget (QWidget *parent, const uintList para_factors)
 ResultWidget (QWidget *parent, const ratio para_result)
 ResultWidget (QWidget *parent=0)
void setAnswerMixed (bool value)
void setFactors (const uintList para_factors)
void setResult (const ratio para_result, int k)
void setResult (int k)
void updateAndRepaint ()
 ~ResultWidget ()

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 Init ()
void paintEvent (QPaintEvent *)
void showResult ()

Private Attributes

QFont defaultFont
QGridLayout * layout
bool m_answerMixed
short m_ExerciseView
uintList m_factors
short m_kindView
QLabel * m_primaryText
ratio m_result
QLabel * m_secondaryText

Detailed Description

class to paint the result

Sebastian Stein

Definition at line 45 of file resultwidget.h.

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

Generated by  Doxygen 1.6.0   Back to index