Beispiel #1
0
/*!
    \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);
}
Beispiel #2
0
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()));
}
Beispiel #3
0
bool osc_wire_t::event_end(unsigned long long t)
{
    ticked(last_from_,t);
    root_->del_ticker(this);
    return source_end(t);
}
Beispiel #4
0
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);
}
Beispiel #5
0
void Audio::onTicked(qint64 t)
{
    emit ticked(QVariant(t));
}