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

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

TaskWidget Class Reference

#include <taskwidget.h>

Inheritance diagram for TaskWidget:
Inheritance graph
Collaboration diagram for TaskWidget:
Collaboration graph

List of all members.

Public Member Functions

void setQuestionMixed (bool value)
void setTask (const task para_task)
 TaskWidget (QWidget *parent, const task para_task)
void updateAndRepaint ()
 ~TaskWidget ()

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
task m_task

Detailed Description

class to paint task with fractions

Sebastian Stein

Definition at line 48 of file taskwidget.h.

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

Generated by  Doxygen 1.6.0   Back to index