parley
summarybarwidget.cpp
Go to the documentation of this file.
85 m_correctCaption->setText(i18nc("test results", "%1 % correct", qRound(m_correct * 100.0 / m_total)));
89 m_notAnsweredCaption->setText(i18nc("test results", "%1 % not answered", qRound(m_notAnswered * 100.0 / m_total)));
138 correctColorLabel->setPixmap(captionPixmap(scheme.foreground(KColorScheme::PositiveText).color()));
139 wrongColorLabel->setPixmap(captionPixmap(scheme.foreground(KColorScheme::NegativeText).color()));
140 notAnsweredColorLabel->setPixmap(captionPixmap(scheme.foreground(KColorScheme::NormalText).color()));
148 return i18n("Answered correctly on the first attempt: %1 of %2 (%3 %)", m_correct, m_total, qRound(m_correct * 100.0 / m_total));
155 return i18n("Answered wrong on the first attempt: %1 of %2 (%3 %)", m_wrong, m_total, qRound(m_wrong * 100.0 / m_total));
162 return i18n("Not answered during this practice: %1 of %2 (%3 %)", m_notAnswered, m_total, qRound(m_notAnswered * 100.0 / m_total));
QLayout * layout() const
Type type() const
void setContentsMargins(int left, int top, int right, int bottom)
void setColorAt(qreal position, const QColor &color)
void setPixmap(const QPixmap &)
void addRoundedRect(const QRectF &rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode)
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
void setStatistics(int correct, int wrong, int notAnswered)
Definition: summarybarwidget.cpp:78
void addSpacing(int size)
QMargins contentsMargins() const
void update()
int width() const
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
virtual void paintEvent(QPaintEvent *event)
SummaryBarWidget(QWidget *parent=0)
Definition: summarybarwidget.cpp:27
void setLayout(QLayout *layout)
void setBrush(const QBrush &brush)
void setText(const QString &)
QRect rect() const
int x() const
int y() const
int width() const
void drawPath(const QPainterPath &path)
void addStretch(int stretch)
void setHeight(int height)
void paintEvent(QPaintEvent *event)
Definition: summarybarwidget.cpp:37
void adjust(int dx1, int dy1, int dx2, int dy2)
void setMinimumHeight(int minh)
void setToolTip(const QString &)
virtual bool event(QEvent *event)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.