parley
practicesummarycomponent.cpp
Go to the documentation of this file.
39 PracticeSummaryComponent::PracticeSummaryComponent(TestEntryManager* testEntryManager, QWidget* parent)
54 summaryBar->setStatistics(m_testEntryManager->statisticTotalCorrectFirstAttempt(), m_testEntryManager->statisticTotalWrong(), m_testEntryManager->statisticTotalUnanswered());
56 int total = m_testEntryManager->statisticTotalCorrectFirstAttempt() + m_testEntryManager->statisticTotalWrong();
60 testSummaryLabel->setText(i18nc("number of words, minutes, seconds", "You practiced %1 in %2 and %3.",
77 ParleyActions::create(ParleyActions::EnterEditMode, parleyMainWindow, SLOT(showEditor()), actionCollection());
78 ParleyActions::create(ParleyActions::StartPractice, parleyMainWindow, SLOT(showPracticeConfiguration()), actionCollection());
92 correctPalette.setColor(QPalette::WindowText, scheme.foreground(KColorScheme::PositiveText).color());
96 wrongPalette.setColor(QPalette::WindowText, scheme.foreground(KColorScheme::NegativeText).color());
~PracticeSummaryComponent()
Definition: practicesummarycomponent.cpp:69
KAction * create(ParleyAction id, const QObject *recvr, const char *slot, QObject *parent)
Definition: parleyactions.cpp:62
QList< TestEntry * > allTestEntries()
Get a list of all entries in the test - used by the summary dialog.
Definition: testentrymanager.h:91
Definition: testentrymanager.h:31
int statisticTotalWrong()
Definition: testentrymanager.cpp:165
Definition: parleyactions.h:36
Definition: parleyactions.h:37
int statisticTotalUnanswered()
Definition: testentrymanager.cpp:176
PracticeSummaryComponent(TestEntryManager *testEntryManager, QWidget *parent)
Definition: practicesummarycomponent.cpp:39
Definition: testentry.h:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.