コード例 #1
0
 //*** Start: UpdatableState implementation ***//
 virtual void reset() override
 {
     last_time_ = clock()->nowNanos();
     clearReport();
     dt_stats_.clear();
     report_freq_.reset();
 }
コード例 #2
0
//Actions for the buttons
void DocumentWidget::createActions()
{
    connect(m_closeButton, SIGNAL(clicked()), this, SLOT(closeFile()));
    connect(m_reviewButton, SIGNAL(clicked()), this, SLOT(showReview()));
    connect(m_hideReview, SIGNAL(clicked()), this, SLOT(hideReview()));
    connect(m_submitReview, SIGNAL(clicked()), this, SLOT(submitReview()));
    connect(m_slider, SIGNAL(valueChanged(int)), m_box, SLOT(setValue(int)));
    connect(m_box, SIGNAL(valueChanged(int)), m_slider, SLOT(setValue(int)));
    connect(m_reportButton, SIGNAL(clicked()), this, SLOT(showReport()));
    connect(m_clearReport, SIGNAL(clicked()), this, SLOT(clearReport()));
    connect(m_hideReport, SIGNAL(clicked()), this, SLOT(hideReport()));
    connect(m_submitReport, SIGNAL(clicked()), this, SLOT(submitReport()));
    connect(m_timer, SIGNAL(timeout()), this, SLOT(s_counter()));
    connect(m_timer, SIGNAL(timeout()), m_parent, SLOT(s_updateCredit()));
    connect(m_clearReview, SIGNAL(clicked()), this, SLOT(clearReview()));
    connect(m_searchButton, SIGNAL(clicked()), this, SLOT(s_search()));
}