/*! \internal */ bool QQmlTimer::event(QEvent *e) { Q_D(QQmlTimer); if (e->type() == QEvent_MaybeTick) { d->awaitingTick = false; ticked(); return true; } else if (e->type() == QEvent_Triggered) { emit triggered(); return true; } return QObject::event(e); }
void MainWindow::makeConnections() { QPushButton *donateBtn = ui->centralWidget->findChild<QPushButton*>("donatePushButton"); if(donateBtn) connect(donateBtn, SIGNAL(clicked()), this, SLOT(openPaypalPage())); connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(iconActivated(QSystemTrayIcon::ActivationReason))); connect(preferences, SIGNAL(projectChanged(Project*)), this, SLOT(switchProject(Project*))); connect(getTrackBtn(), SIGNAL(clicked()), this, SLOT(toggleTracking())); connect(trackingClock, SIGNAL(ticked()), this, SLOT(setTimeLabel())); QListView * projectLst = ui->centralWidget->findChild<QListView*>("projectLst"); connect(projectLst, SIGNAL(activated(QModelIndex)), this, SLOT(setSelectedProject(QModelIndex))); connect(projectLst, SIGNAL(clicked(QModelIndex)), this, SLOT(setSelectedProject(QModelIndex))); QPushButton * btn = ui->centralWidget->findChild<QPushButton*>("newProjectBtn"); connect(btn, SIGNAL(clicked()), this, SLOT(showProjectDialog())); connect(newProjectDialog, SIGNAL(accepted()), this, SLOT(addNewProject())); }
bool osc_wire_t::event_end(unsigned long long t) { ticked(last_from_,t); root_->del_ticker(this); return source_end(t); }
void osc_wire_t::event_buffer_reset(unsigned s, unsigned long long t, const piw::dataqueue_t &o, const piw::dataqueue_t &n) { input_->set_signal(s,n); input_->reset(s,t); ticked(last_from_,t); }
void Audio::onTicked(qint64 t) { emit ticked(QVariant(t)); }